Re: Socket (fd) to posters server getting closed. (libpq) - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Socket (fd) to posters server getting closed. (libpq)
Date
Msg-id 3175544.1624803158@sss.pgh.pa.us
Whole thread Raw
In response to Socket (fd) to posters server getting closed. (libpq)  (Sudheer H R <sudheer.hr@tekenlight.com>)
List pgsql-bugs
Sudheer H R <sudheer.hr@tekenlight.com> writes:
> I am writing a piece of software to connect to the Postgres database in the asynchronous manner and have used
PQconnectStartParams,PQsendPrepare, PQFlush , etc… in conjunction with libev. 

> The established connection is used for a transaction, and then added to a pool of connections, and then subsequently
retrievedfrom the pool for reuse. 

> I notice that the retrieved connection has the socket fd closed, which leads to an error o the nature:  could not
receivedata from server: Bad file descriptor 

libpq itself will assuredly never close a socket that's associated with
an open connection.  You need to look elsewhere for the cause.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Sudheer H R
Date:
Subject: Socket (fd) to posters server getting closed. (libpq)
Next
From: Tom Lane
Date:
Subject: Re: Assertion on create index concurrently