Re: psql hanging
От | Trevor Talbot |
---|---|
Тема | Re: psql hanging |
Дата | |
Msg-id | 90bce5730709051044p6112382co2e5533ee8341f38f@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: psql hanging (Richard Huxton <dev@archonet.com>) |
Ответы |
Re: psql hanging
Re: psql hanging |
Список | pgsql-general |
On 9/5/07, Richard Huxton <dev@archonet.com> wrote: > Steve Crawford wrote: > > A while back I had to restart the server and today discovered that some > > of the client machines have psql processes dating back several months. > > > > Obviously no TCP connection on the server end but client-side shows the > > connection as "ESTABLISHED". > > The OS should clear that connection down after a timeout - hours > perhaps, but months doesn't sound right. When the connection gets closed > down psql should exit. Unless psql is turning on keepalive or similar, or the OS is forcing it on by default, there are no timeouts for idle TCP connections. If the command was transported to the server successfully and psql was just waiting for a result, the connection is idle and nothing will happen if the server end suddenly goes away.
В списке pgsql-general по дате отправления: