delve/service/rpc1
Alessandro Arzilli e3d438876e
service/rpccommon: fix shutdown related bugs (#2439)
* service/rpcommon: resolve race between Detach and shutdown

Detach will close DisconnectChan causing the server to initiate
shutdown, there is a race between Detach writing its response to the
client and the shutdown terminating the server process.
If Detach loses the race the response to the Detach request is never
sent to the client and the client will report an EOF error instead.

This change delays the start of the shutdown process until after Detach
has written its response.

Fixes an occasional failure of TestContinue.

* service/rpccommon: ignore listener error when shutting down

Ignore the closed listener error when the server is being shut down in
response to a SIGINT signal.

Fixes #1633
2021-04-19 11:12:51 -07:00
..
client.go terminal,service: Add support for rev prefix and step-instruction (#1596) 2019-07-08 18:01:00 -07:00
readme.txtr service,terminal: APIv2 plus method to select API version (#460) 2016-04-18 12:20:20 -07:00
server.go service/rpccommon: fix shutdown related bugs (#2439) 2021-04-19 11:12:51 -07:00

This package implements version 1 of Delve's API and is only
kept here for backwards compatibility. Client.go is the old
client code used by Delve's frontend (delve/cmd/dlv), it is
only preserved here for the backwards compatibility tests in
service/test/integration1_test.go.