neqo
neqo copied to clipboard
Add a timer to clean up a CONNECT stream if the peer does not do that.
There are 2 cases for this:
- when the server respond with 404 it does not close the receiving side of the request. If it do that the reset may be received by the peer before 404 response. We need a timer to remove the receiving side and send STOP_SENDING
- if clean shutdown is used (#1286), we have a similar situation. In addition to that if the local side receives the close frame but does not receive a FIN on the stream, the stream should be cleaned up as well.