Closed ghislainbourgeois closed 6 years ago
This fixes moby downstream issue 35613
@mariussturm, @0cjs, @iporsut, @MiLk, can you review this bug fix? It fixes a problem that was missed when the server is goes completely offline.
On it, but this is not trivial code.
This is the first time I hear about context, my go-fu is quite limited, but from what I read, I am not sure it would be cleaner than the multiple signals. The thing is that we need to be able to control the tcpreader
test harness to drop only active connections, or the whole server synchronously with the test itself.
Am I missing something on the Context?
Thanks for the PR, LGTM!
This adds a new test that closes the server and continue to write to it. It uncovered a bug with an unhandled nil pointer. It also uncovered some issues in the reconnection logic that were fixed at the same time.