Re: Connection terminated by the server causes deadlock in jdbc client side connection - Mailing list pgsql-jdbc

From Steffen Heil (Mailinglisten)
Subject Re: Connection terminated by the server causes deadlock in jdbc client side connection
Date
Msg-id 885902ab090d4641a8ac74c199ba2873@exchange.sh-solutions.de
Whole thread Raw
In response to Re: Connection terminated by the server causes deadlock in jdbc client side connection  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc
Hi


> What happens if the server just discards the connection. In other words it
> doesn't close it. It just terminates without closing any open connections ?

That should only happen, if the servers OS crashes. For a process there is no
way to "discard" a connection. (The server could keep the connection open
without sending or reading, but I would consider that a serious bug.)

And if the server OS crashes and the client tries to send something, a timeout
waiting for the sent packets will occur or if the server rebooted in time, a
RST packet will be sent. Either way, the client will detect that and close the
connection.


Regards,
  Steffen



Attachment

pgsql-jdbc by date:

Previous
From: Leonardo Frittelli
Date:
Subject: Re: Connection terminated by the server causes deadlock in jdbc client side connection
Next
From: "Steffen Heil (Mailinglisten)"
Date:
Subject: Re: Connection terminated by the server causes deadlock in jdbc client side connection