Ticket #4880 enhancement new

Opened 3 years ago

Misleading behavior during large line disconnects

Reported by: FireSlash Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:
Author: Launchpad Bug:

Description

When sending abnormally large lines with LineOnlyReceiver, it will disconnect in a very misleading way. The receiver will continue to accept lines for a short time after the incident (so if one line exceeds the length, the last message before disconnection may be entirely different).

clientConnectionLost() is then triggered, with a message of

Connection was closed cleanly.

This behavior implies that either the client or server closed the connection under normal circumstances, leading any developer to look elsewhere for the cause of the problem.

I've attached a simple client/server to reproduce this behavior.

Attachments

disconnect_test.zip Download (1.0 KB) - added by FireSlash 3 years ago.
Modified echoclient/echoserver to demonstrate issue.

Change History

Changed 3 years ago by FireSlash

Modified echoclient/echoserver to demonstrate issue.

1

Changed 3 years ago by <automation>

Note: See TracTickets for help on using tickets.