mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 12:43:03 +01:00
Fixed bug CORE-2656 : Error reading data from the connection. On disconnect
Thanks to Oleg Matveyev for test case and assistance
This commit is contained in:
parent
a64bb88435
commit
d2c89f53f3
@ -3039,7 +3039,8 @@ static bool packet_receive(rem_port* port, UCHAR* buffer, SSHORT buffer_length,
|
|||||||
|
|
||||||
if (!n)
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user