RE: [ODBC] RE: [PATCHES] Fix for ODBC close

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема RE: [ODBC] RE: [PATCHES] Fix for ODBC close
Дата
Msg-id EKEJJICOHDIEMGPNIFIJEEBLDJAA.Inoue@tpf.co.jp
обсуждение исходный текст
Ответ на Re: [ODBC] RE: [PATCHES] Fix for ODBC close  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [ODBC] RE: [PATCHES] Fix for ODBC close  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: pgAccess fails to launch on HPUX
Следующее
От: "Hiroshi Inoue"
Дата:
Сообщение: RE: ODBC backward versions