cloudflare / quiche

šŸ„§ Savoury implementation of the QUIC transport protocol and HTTP/3

Home Page:https://docs.quic.tech/quiche/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calling `Connection::close()` should prevent any application data from being written

evanrittenhouse opened this issue Ā· comments

close() writes a CONNECTION_CLOSE to the connection, but doesn't immediately set the connection's drain timer. This means that applications can write data to the connection which should effectively never be processed, by virtue of it being preceded by a CONNECTION_CLOSE.

We should just immediately set the draining timer to prevent sending extra data over the wire