Re: BUG #17179: EOF detected

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: 66666666nikita(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17179: EOF detected
Date: 2021-09-03 13:34:25
Message-ID: 2481802.1630676065@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> Query running for more than 30 minutes are disconnected
> SELECT pg_sleep(1820)
> SSL SYSCALL error: EOF detected

Ideally, you'd fix your broken network infrastructure. However,
if you can't ...

> Increased timeouts tcp_user_timeout, tcp_keepalives_interval didn't help.

... that's exactly backwards about how to work around it. You need
to *reduce* the interval at which keepalives are sent. Try setting
tcp_keepalives_idle to 10min or so. (At least on my Linux box,
it seems to default to 7200s = 2 hours, so that it's no surprise that a
router that drops connections after 30 minutes would cause problems.)

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Kevin Burke 2021-09-03 14:26:02 Re: BUG #17178: probes.h: No such file or directory when running 'make install'
Previous Message Tom Lane 2021-09-03 13:23:39 Re: BUG #17178: probes.h: No such file or directory when running 'make install'