Re: Connection terminated by the server causes deadlock in jdbc client side connection

From: "Steffen Heil (Mailinglisten)" <lists(at)steffen-heil(dot)de>
To: Dave Cramer <pg(at)fastcrypt(dot)com>
Cc: Leonardo Frittelli <leonardo(dot)frittelli(at)gmail(dot)com>, "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Connection terminated by the server causes deadlock in jdbc client side connection
Date: 2015-10-08 16:43:29
Message-ID: 885902ab090d4641a8ac74c199ba2873@exchange.sh-solutions.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Steffen Heil (Mailinglisten) 2015-10-08 16:46:40 Re: Connection terminated by the server causes deadlock in jdbc client side connection
Previous Message Leonardo Frittelli 2015-10-08 13:03:19 Re: Connection terminated by the server causes deadlock in jdbc client side connection