Re: [ODBC] RE: Fix for ODBC close - Mailing list pgsql-patches

From Hiroshi Inoue
Subject Re: [ODBC] RE: Fix for ODBC close
Date
Msg-id 3A873564.B58D047D@tpf.co.jp
Whole thread Raw
In response to Re: [ODBC] RE: Fix for ODBC close  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Bruce Momjian wrote:
>
> > > -----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.
>
> Thanks.  I was so focused on close() I never noticed the shutdown().
> Can someone please test now?
>

I had already tested it in win32 environment before
I posted my previous mail.

Regards,
Hiroshi Inoue

pgsql-patches by date:

Previous
From: Dave Page
Date:
Subject: RE: [ODBC] RE: Fix for ODBC close
Next
From: Dave Page
Date:
Subject: ODBC Patch