Commit cc818a83 authored by Bruce Momjian's avatar Bruce Momjian

Move X packet before shutdown().

parent 3152ef63
...@@ -77,15 +77,11 @@ SOCK_Destructor(SocketClass *self) ...@@ -77,15 +77,11 @@ SOCK_Destructor(SocketClass *self)
{ {
if (self->socket != -1) if (self->socket != -1)
{ {
if (!shutdown(self->socket, 2)) /* no sends or receives */
{
#ifdef DOES_NOT_WORK
SOCK_put_char(self, 'X'); SOCK_put_char(self, 'X');
SOCK_flush_output(self); SOCK_flush_output(self);
#endif if (!shutdown(self->socket, 2)) /* no sends or receives */
closesocket(self->socket); closesocket(self->socket);
} }
}
if (self->buffer_in) if (self->buffer_in)
free(self->buffer_in); free(self->buffer_in);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment