| От | Tom Lane |
|---|---|
| Тема | Re: Socket (fd) to posters server getting closed. (libpq) |
| Дата | |
| Msg-id | 3175544.1624803158@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Socket (fd) to posters server getting closed. (libpq) (Sudheer H R <sudheer.hr@tekenlight.com>) |
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера