RE: [ODBC] RE: [PATCHES] Fix for ODBC close - Mailing list pgsql-hackers

From Hiroshi Inoue
Subject RE: [ODBC] RE: [PATCHES] Fix for ODBC close
Date
Msg-id EKEJJICOHDIEMGPNIFIJEEBLDJAA.Inoue@tpf.co.jp
Whole thread Raw
In response to Re: [ODBC] RE: [PATCHES] Fix for ODBC close  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [ODBC] RE: [PATCHES] Fix for ODBC close
List pgsql-hackers
> -----Original Message-----
> From: Bruce Momjian
>
> OK, I have a pretty good guess about the cause of the ODBC shutdown
> failure message in the server logs.  Sending 'X' is still causing the
> error message.
>
> The error you are seeing is from the backend libpq code, the area that
> communicates with clients.
>
> while ODBC closes with:
>
>         SOCK_put_char(self, 'X');
>         SOCK_flush_output(self);
>

Probably you have to put above code before calling
shutdown() not after.  shutdown(sock, 2) disables
both sends and receives on the socket.

Regards,
Hiroshi Inoue


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pgAccess fails to launch on HPUX
Next
From: "Hiroshi Inoue"
Date:
Subject: RE: ODBC backward versions