Open nils-borrmann-tacto opened 2 weeks ago
@nils-borrmann-tacto , hello, could you grant me necessary permissions for coauthoring, please?
@stankudrow done
Relates to the issue #126 , closes the issue #127 .
@gnomeby , @reclosedev , could you possibly help in reviewing this PR?
I added two test cases that locally reproduce a connection closed by the server, and fixed the related issues.
I start a proxy server from port 9001->9000 that kills the connection after it idled for 2 seconds. It can actually kill the connection in two different ways, either gracefully (TCP FIN packet), or ungracefully (TCP RST packet). The former option causes a
UnexpectedPacketFromServerError
, the latter aConnectionResetError
. Both are be easy to fix by slightly changing the exception handling.