Skip to content

Commit

Permalink
Fixed bug CORE-2656 : Error reading data from the connection. On disc…
Browse files Browse the repository at this point in the history
…onnect

Thanks to Oleg Matveyev for test case and assistance
  • Loading branch information
hvlad committed Oct 11, 2009
1 parent a64bb88 commit d2c89f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/remote/inet.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit d2c89f5

Please sign in to comment.