From d2c89f53f38a783629b0e3685dfb8b471a99f289 Mon Sep 17 00:00:00 2001 From: hvlad Date: Sun, 11 Oct 2009 19:54:04 +0000 Subject: [PATCH] Fixed bug CORE-2656 : Error reading data from the connection. On disconnect Thanks to Oleg Matveyev for test case and assistance --- src/remote/inet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/remote/inet.cpp b/src/remote/inet.cpp index e042c4fbb0..9a130a82ea 100644 --- a/src/remote/inet.cpp +++ b/src/remote/inet.cpp @@ -3039,7 +3039,8 @@ static bool packet_receive(rem_port* port, UCHAR* buffer, SSHORT buffer_length, if (!n) { - inet_error(port, "read end_of_file", isc_net_read_err, inetErrNo); + if (!(port->port_flags & PORT_detached)) + inet_error(port, "read end_of_file", isc_net_read_err, inetErrNo); return false; }