Re: Timeout and wait-forever in sync rep

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timeout and wait-forever in sync rep
Date: 2010-10-18 16:06:30
Message-ID: AANLkTinbLxmwqdSFQVyamm_OzRYm-_-10Yna7-zRasF0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Oct 18, 2010 at 12:03 AM, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> The keepalives don't work at least on linux when the connection is terminated
> after sending a packet and before receiving TCP-level ACK. You can confirm
> this by unplugging the LAN cable from a client server while running pgbench
> on a client.

What do you mean by "don't work"? In this case no additional packets
would be needed since the regular ack would serve the same purpose.
How long did you wait to test whether it would work? It takes quite a
while before the connection would time out.

--
greg

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Terry Laurenzo 2010-10-18 16:15:07 Re: patch: Add JSON datatype to PostgreSQL (GSoC, WIP)
Previous Message Robert Haas 2010-10-18 15:56:16 Re: ISN patch that applies cleanly with git apply