Skip site navigation (1) Skip section navigation (2)

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

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "PostgreSQL-development" <pgsql-hackers(at)postgreSQL(dot)org>
Cc: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>, "PostgreSQL odbc list" <pgsql-odbc(at)postgreSQL(dot)org>, "PostgreSQL-patches" <pgsql-patches(at)postgreSQL(dot)org>
Subject: RE: [ODBC] RE: [PATCHES] Fix for ODBC close
Date: 2001-02-11 13:10:56
Message-ID: EKEJJICOHDIEMGPNIFIJEEBLDJAA.Inoue@tpf.co.jp (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-odbcpgsql-patches
> -----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 


In response to

Responses

pgsql-hackers by date

Next:From: Hiroshi InoueDate: 2001-02-11 13:11:46
Subject: RE: ODBC backward versions
Previous:From: Peter EisentrautDate: 2001-02-11 11:11:56
Subject: Re: pgAccess fails to launch on HPUX

pgsql-odbc by date

Next:From: Bruce MomjianDate: 2001-02-11 13:17:13
Subject: Re: [ODBC] RE: [PATCHES] Fix for ODBC close
Previous:From: Bruce MomjianDate: 2001-02-11 06:30:57
Subject: Re: [ODBC] RE: [PATCHES] Fix for ODBC close

pgsql-patches by date

Next:From: Bruce MomjianDate: 2001-02-11 13:17:13
Subject: Re: [ODBC] RE: [PATCHES] Fix for ODBC close
Previous:From: Bruce MomjianDate: 2001-02-11 06:30:57
Subject: Re: [ODBC] RE: [PATCHES] Fix for ODBC close

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group