pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #15443: Connection loss error come occasionally
3+ messages / 3 participants
[nested] [flat]
* BUG #15443: Connection loss error come occasionally
@ 2018-10-19 10:38 PG Bug reporting form <noreply@postgresql.org>
2018-10-20 14:08 ` Re: BUG #15443: Connection loss error come occasionally Jeff Janes <jeff.janes@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: PG Bug reporting form @ 2018-10-19 10:38 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: sagar5490.more@gmail.com
The following bug has been logged on the website:
Bug reference: 15443
Logged by: Sagar More
Email address: sagar5490.more@gmail.com
PostgreSQL version: 9.5.9
Operating system: RHEL 7.2
Description:
Dear Team,
We have postgresql database version 9.5.9 in production set up.We
occasionally face below error.So we need to restart application process to
fix it.(droped connection from application end and start again) but its not
ideal solution.
Error :-
org.postgresql.util.PSQLException: An I/O error occurred while sending to
the backend.
Caused by: java.net.SocketException: Connection reset by peer: socket write
error
We need help to fix this error.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #15443: Connection loss error come occasionally
2018-10-19 10:38 BUG #15443: Connection loss error come occasionally PG Bug reporting form <noreply@postgresql.org>
@ 2018-10-20 14:08 ` Jeff Janes <jeff.janes@gmail.com>
2018-10-20 15:55 ` Re: BUG #15443: Connection loss error come occasionally Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Janes @ 2018-10-20 14:08 UTC (permalink / raw)
To: sagar5490.more@gmail.com; pgsql-bugs@lists.postgresql.org
On Fri, Oct 19, 2018 at 6:39 AM PG Bug reporting form <
noreply@postgresql.org> wrote:
> The following bug has been logged on the website:
>
> Bug reference: 15443
> Logged by: Sagar More
> Email address: sagar5490.more@gmail.com
> PostgreSQL version: 9.5.9
> Operating system: RHEL 7.2
> Description:
>
> Dear Team,
>
> We have postgresql database version 9.5.9 in production set up.We
> occasionally face below error.So we need to restart application process to
> fix it.(droped connection from application end and start again) but its not
> ideal solution.
>
> Error :-
> org.postgresql.util.PSQLException: An I/O error occurred while sending to
> the backend.
> Caused by: java.net.SocketException: Connection reset by peer: socket write
> error
>
> We need help to fix this error.
>
>
Probably a firewall or gateway dropping the connections that they perceive
as being idle. What does the PostgreSQL server log have to say about it?
If both ends accuse the other of closing the connection, it is probably due
to active interference.
Seems like your application should be designed to recover from this without
a full restart.
Cheers,
Jeff
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #15443: Connection loss error come occasionally
2018-10-19 10:38 BUG #15443: Connection loss error come occasionally PG Bug reporting form <noreply@postgresql.org>
2018-10-20 14:08 ` Re: BUG #15443: Connection loss error come occasionally Jeff Janes <jeff.janes@gmail.com>
@ 2018-10-20 15:55 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 2018-10-20 15:55 UTC (permalink / raw)
To: Jeff Janes <jeff.janes@gmail.com>; +Cc: sagar5490.more@gmail.com; pgsql-bugs@lists.postgresql.org
Jeff Janes <jeff.janes@gmail.com> writes:
> On Fri, Oct 19, 2018 at 6:39 AM PG Bug reporting form <
> noreply@postgresql.org> wrote:
>> org.postgresql.util.PSQLException: An I/O error occurred while sending to
>> the backend.
>> Caused by: java.net.SocketException: Connection reset by peer: socket write
>> error
> Probably a firewall or gateway dropping the connections that they perceive
> as being idle.
Yeah, that's what it looks like to me too.
> Seems like your application should be designed to recover from this without
> a full restart.
That's not a bad idea, but you can probably also alleviate the problem
by enabling TCP keepalives on the connection. PG has both server-side
and client-side (at least in libpq) options for that. Should be
sufficient to turn it on at just one end.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-10-20 15:55 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-10-19 10:38 BUG #15443: Connection loss error come occasionally PG Bug reporting form <noreply@postgresql.org>
2018-10-20 14:08 ` Jeff Janes <jeff.janes@gmail.com>
2018-10-20 15:55 ` Tom Lane <tgl@sss.pgh.pa.us>
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