From: Bruce Momjian Date: Sun, 11 Feb 2001 23:34:08 +0000 (+0000) Subject: Remove unneeded shutdown() call, per Tom Lane. X-Git-Tag: REL7_1~455 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07faa2fdce4c15c9e25999eac4133b0940770fa4;p=postgresql Remove unneeded shutdown() call, per Tom Lane. --- diff --git a/src/interfaces/odbc/socket.c b/src/interfaces/odbc/socket.c index 9eb50fbd8a..131c466b0c 100644 --- a/src/interfaces/odbc/socket.c +++ b/src/interfaces/odbc/socket.c @@ -79,8 +79,7 @@ SOCK_Destructor(SocketClass *self) { SOCK_put_char(self, 'X'); SOCK_flush_output(self); - if (!shutdown(self->socket, 2)) /* no sends or receives */ - closesocket(self->socket); + closesocket(self->socket); } if (self->buffer_in) @@ -291,9 +290,11 @@ SOCK_get_next_byte(SocketClass *self) /* reload the buffer */ self->buffer_read_in = 0; - self->buffer_filled_in = recv(self->socket, (char *) self->buffer_in, globals.socket_buffersize, 0); + self->buffer_filled_in = recv(self->socket, (char *) self->buffer_in, + globals.socket_buffersize, 0); - mylog("read %d, global_socket_buffersize=%d\n", self->buffer_filled_in, globals.socket_buffersize); + mylog("read %d, global_socket_buffersize=%d\n", + self->buffer_filled_in, globals.socket_buffersize); if (self->buffer_filled_in == -1) {