bblfsh / sdk

Babelfish driver SDK
GNU General Public License v3.0
23 stars 27 forks source link

Restart the driver in case the protocol is broken #389

Closed dennwc closed 5 years ago

dennwc commented 5 years ago

The fix included in #381 was not enough to fix #380. The case is a bit different: the driver first breaks the native protocol flow by printing on stdout, and then it crashes.

This PR makes sure to restart the driver in both cases and includes a new test case.

Fixes #380

Signed-off-by: Denys Smirnov denys@sourced.tech