From: Steffen Heil (Mailinglisten) <lists@steffen-heil.de>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Leonardo Frittelli <leonardo.frittelli@gmail.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Connection terminated by the server causes deadlock in jdbc client side connection
Date: Thu, 8 Oct 2015 16:43:29 +0000
Message-ID: <885902ab090d4641a8ac74c199ba2873@exchange.sh-solutions.de> (raw)
In-Reply-To: <CADK3HHLsyn=F8V7E8DfbHFFdJJ_EkARqs8FMA8StWTwUB2B1zA@mail.gmail.com>
References: <CACh06N3O40kLx9YLH6cT8_DTEdRVt+G+tCBAinrjzhtECHfgUQ@mail.gmail.com>
<0c59e097a3ec4139b049b89627fb149f@exchange.sh-solutions.de>
<CADK3HHLsyn=F8V7E8DfbHFFdJJ_EkARqs8FMA8StWTwUB2B1zA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
Attachments:
smime.p7s (application/pkcs7-signature, 6.2K) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: lists@steffen-heil.de, pg@fastcrypt.com, leonardo.frittelli@gmail.com
Subject: Re: Connection terminated by the server causes deadlock in jdbc client side connection
In-Reply-To: <885902ab090d4641a8ac74c199ba2873@exchange.sh-solutions.de>
References: <CACh06N3O40kLx9YLH6cT8_DTEdRVt+G+tCBAinrjzhtECHfgUQ@mail.gmail.com> <0c59e097a3ec4139b049b89627fb149f@exchange.sh-solutions.de> <CADK3HHLsyn=F8V7E8DfbHFFdJJ_EkARqs8FMA8StWTwUB2B1zA@mail.gmail.com> <885902ab090d4641a8ac74c199ba2873@exchange.sh-solutions.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox