From 07faa2fdce4c15c9e25999eac4133b0940770fa4 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 11 Feb 2001 23:34:08 +0000 Subject: [PATCH] Remove unneeded shutdown() call, per Tom Lane. --- src/interfaces/odbc/socket.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) { -- 2.40.0