INTEXT-45 Fix INT-2936 Work Around

When not using NIO, could get a message
"Max supported length exceeded" if the
socket is closed abruptly.