Re: An extra error for client disconnection on Windows

From: Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>
To: robertmhaas(at)gmail(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: An extra error for client disconnection on Windows
Date: 2016-07-04 06:04:05
Message-ID: 20160704.150405.99542372.horiguchi.kyotaro@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thank you for the suggestion, I've done it.

At Wed, 15 Jun 2016 12:15:07 -0400, Robert Haas <robertmhaas(at)gmail(dot)com> wrote in <CA+TgmoadQzVLG3ONw=FCGOcQxxDwP7_9AGQD43S7Z+hQj56WYg(at)mail(dot)gmail(dot)com>
> On Thu, Jun 2, 2016 at 4:51 AM, Kyotaro HORIGUCHI
> <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp> wrote:
> > After a process termination without PQfinish() of a client,
> > server emits the following log message not seen on Linux boxes.
> >
> >> LOG: could not receive data from client: An existing connection was forcibly closed by the remote host.
> >
> > This is because pgwin32_recv reuturns an error ECONNRESET for the
> > situation instead of returning non-error EOF as recv(2) does.
> >
> > This patch translates WSAECONNRESET of WSARecv to an EOF so that
> > pgwin32_recv behaves the same way with Linux.
> >
> > The attached patch does this.
>
> Please add this to the next CommitFest so it gets reviewed.

--
Kyotaro Horiguchi
NTT Open Source Software Center

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro HORIGUCHI 2016-07-04 07:02:13 [CF2016-9] Allow spaces in working path on tap-tests
Previous Message Andrew Borodin 2016-07-04 05:41:48 Re: GiST optimizing memmoves in gistplacetopage for fixed-size updates [PoC]