CA-60270: handle EOF nicely in the proxy code by draining buffers and signalling state via Unix.shutdown
CA-60270: handle EOF nicely in the proxy code by draining buffers and signalling state via Unix.shutdown

Without this the proxy gives up as soon as one side does, even if there are still data in the buffer.

Signed-off-by: David Scott <63c9eb0ea83039690fefa11afe17873ba8278a56@eu.citrix.com>

xapi-project/message-switch,xapi-project/message-switch,xapi-project/message-switch,johnelse/forkexecd,djs55/forkexecd