haskell-grpc-native / http2-client

A native HTTP2 client in Haskell
BSD 3-Clause "New" or "Revised" License
43 stars 27 forks source link

Detect and close dead TCP connections #78

Open ProofOfKeags opened 3 years ago

ProofOfKeags commented 3 years ago

If the other side of a TCP connection dies without actually sending a TCP close packet. Things that try to use the connection will just hang indefinitely. We should try and detect whether a connection is dead or not and then close it and throw an exception so that calling code will be alerted of its failure.