Re: Keep-alive support
От | Tomasz Myrta |
---|---|
Тема | Re: Keep-alive support |
Дата | |
Msg-id | 456DEE3D.3020108@klaster.net обсуждение исходный текст |
Ответ на | Keep-alive support (Leandro Lucarella <llucarella@integratech.com.ar>) |
Ответы |
Re: Keep-alive support
|
Список | pgsql-interfaces |
Leandro Lucarella napisal 2006-11-29 20:49: > Is there any keep alive support in libpq? I'm not really using libpq > directly, I'm using libpqxx and there is no keep-alive support there, > so I'm trying to use TCP's own keep-alive support, but I have a > problem: libpq seems to reconnect the socket when the connection is lost. <cut> > In the sleep time I unplug the network cable and monitor the TCP > connection using netstat -pano, and found all the TCP keep-alive > timers times out perfectly, closing the connection, but inmediatly I > see a new connection (and without the keep-alive parameters, so it > take forever to timeout again). So I guess libpq is re-opening the > socket. This is making my life a nightmare =) I used keepalive the same way as you (reconfiguring socket directly) and I don't remember libpq trying to reconnect itself. I think it's a libpqxx's behaviour - I didn't use it, but it looks like it is called "reactivation". Regards, Tomasz Myrta
В списке pgsql-interfaces по дате отправления: