bblfsh / web

Web client for Babelfish server
http://dashboard.bblf.sh
GNU General Public License v3.0
23 stars 21 forks source link

handle timeout correctly #212

Closed smacker closed 5 years ago

smacker commented 5 years ago

fix: #187

Current versions of bblfhd and client-go don't have any timeouts but a proxy (like nginx) can have one. In such case user will see standard "Bad Gateway" error.

This commit doesn't change this behaviour but handles timeouts correctly. In case of client (or proxy) has cancelled a request it gets propagated to bblfsh. In case bblfsh would add default timeout in the future this commit handles it correctly too.