Re: Psql or test application hangs when interface is down for the DB server
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Psql or test application hangs when interface is down for the DB server |
| Дата | |
| Msg-id | 7848.1216218787@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Psql or test application hangs when interface is down for the DB server (Gregory Stark <stark@enterprisedb.com>) |
| Ответы |
Re: Psql or test application hangs when interface is down for the DB server
|
| Список | pgsql-bugs |
Gregory Stark <stark@enterprisedb.com> writes:
> "K, Niranjan (NSN - IN/Bangalore)" <niranjan.k@nsn.com> writes:
>> Is there any other workaround or alternative so that the situation about
>> the interface is down is known and based on that the 'PQexec' does not
>> get blocked for ~15 minutes.
> Absent threads I think you have to use alarm() and a SIGALRM signal handler.
On most modern platforms you can adjust the TCP timeouts for the
connection. There's no explicit support for that in libpq, but
you can just get the socket FD from it and do setsockopt().
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера