DISPATCH-2100: Self test for TCP half-closed handling
DISPATCH-2100: Self test for TCP half-closed handling

This patch improves the echo server program half-closed handling.

When the client socket closes ensure that data received from the
client is echoed back to the client before closing the socket
from the server end.

ChugR/qpid-dispatch,ErnieAllen/qpid-dispatch,apache/dispatch,apache/dispatch,mgoulish/qpid-dispatch,ErnieAllen/qpid-dispatch,ted-ross/qpid-dispatch,ChugR/qpid-dispatch,ted-ross/qpid-dispatch,mgoulish/qpid-dispatch,apache/dispatch,kgiusti/dispatch,ChugR/qpid-dispatch,ted-ross/qpid-dispatch,kgiusti/dispatch,kgiusti/dispatch,ChugR/qpid-dispatch,apache/qpid-dispatch,apache/dispatch,ErnieAllen/qpid-dispatch,apache/qpid-dispatch,ted-ross/qpid-dispatch,apache/dispatch,ErnieAllen/qpid-dispatch,ted-ross/qpid-dispatch,kgiusti/dispatch,apache/qpid-dispatch,mgoulish/qpid-dispatch,mgoulish/qpid-dispatch,kgiusti/dispatch,kgiusti/dispatch,ted-ross/qpid-dispatch,apache/qpid-dispatch,apache/dispatch,ErnieAllen/qpid-dispatch,apache/dispatch,ChugR/qpid-dispatch,apache/qpid-dispatch,ErnieAllen/qpid-dispatch,apache/qpid-dispatch,mgoulish/qpid-dispatch,ChugR/qpid-dispatch,mgoulish/qpid-dispatch