Re: How does server handle clients that disconnect ungracefully?

From: Richard Huxton <dev(at)archonet(dot)com>
To: delux256-postgresql(at)yahoo(dot)com
Cc: PostgreSQL GENERAL List <pgsql-general(at)postgresql(dot)org>
Subject: Re: How does server handle clients that disconnect ungracefully?
Date: 2007-04-24 13:45:46
Message-ID: 462E0A0A.6070208@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jeff Lanzarotta wrote:
> Hello,
>
> I am writing an application that reads information from my PostgreSQL
> database. If I cause the program to crash and the program ends without
> gracefully disconnecting from the database, there is an open connection
> still left in the database.
>
> How does the PostgreSQL server handle clients that disconnect
> ungracefully? Will the server automatically clean up this connection
> that really is not there?

Worst case is that the tcp/ip connection is never cleared down. That
means the connection will sit there until your tcp/ip stack clears it
down. I *think* that's an hour on linux.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Lanzarotta 2007-04-24 13:55:12 Re: How does server handle clients that disconnect ungracefully?
Previous Message Magnus Hagander 2007-04-24 13:43:34 Re: How does server handle clients that disconnect ungracefully?