mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Move X packet before shutdown().
This commit is contained in:
parent
3152ef63a6
commit
cc818a83c0
@ -77,14 +77,10 @@ SOCK_Destructor(SocketClass *self)
|
|||||||
{
|
{
|
||||||
if (self->socket != -1)
|
if (self->socket != -1)
|
||||||
{
|
{
|
||||||
|
SOCK_put_char(self, 'X');
|
||||||
|
SOCK_flush_output(self);
|
||||||
if (!shutdown(self->socket, 2)) /* no sends or receives */
|
if (!shutdown(self->socket, 2)) /* no sends or receives */
|
||||||
{
|
|
||||||
#ifdef DOES_NOT_WORK
|
|
||||||
SOCK_put_char(self, 'X');
|
|
||||||
SOCK_flush_output(self);
|
|
||||||
#endif
|
|
||||||
closesocket(self->socket);
|
closesocket(self->socket);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self->buffer_in)
|
if (self->buffer_in)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user