> -----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