Re: Socket timeouts (probably)
От | Sergei Georgiev |
---|---|
Тема | Re: Socket timeouts (probably) |
Дата | |
Msg-id | b9e7d4a8050224020458cb6a3e@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Socket timeouts (probably) (Oliver Jowett <oliver@opencloud.com>) |
Ответы |
Re: Socket timeouts (probably)
|
Список | pgsql-jdbc |
> You may want to try tweaking /proc/sys/net/ipv4/tcp_keepalive_* on the > server to make TCP keepalives notice the dead connection faster (these > are global settings, though). There are corresponding setsockopt() calls > you could make on a per-socket basis if you are prepared to tweak the > server code. I'd rather not, because as Markus said there may be other services started on the DB machine in the future (it's just a prototype testing for a new project). I found that there is a property called "statement_timeout" in the postgresql.conf. This limits the time, in which a statement must be executed. It looks like a solution to me, but I need to test it. 10x anyway :)
В списке pgsql-jdbc по дате отправления: