Flush pending packets before closing the connection
Description
When a connection is closed immediately after sending a message the message gets dropped. Instead we should flush all remaining packets (to send) and stop accepting new packets.
Environment
None
Activity
Show:
MattM
February 4, 2007 at 4:11 PM
Changed logic in PacketWriter to flush the queue when shutting down the writing thread.
When a connection is closed immediately after sending a message the message gets dropped. Instead we should flush all remaining packets (to send) and stop accepting new packets.