Re: Escaping from blocked send() reprised.
Andres Freund <andres@2ndquadrant.com>
From: Andres Freund <andres@2ndquadrant.com>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>,
robertmhaas@gmail.com, pgsql-hackers@postgresql.org
Date: 2014-09-02T19:05:17Z
Lists: pgsql-hackers
On 2014-09-02 21:01:44 +0200, Andres Freund wrote: > I've actually been working on a patch to make the whole interaction with > the client using sockets. The reason I started so is that we lots of far > to complex stuff in signal handlers, and using a latch would allow us to > instead interrupt send/recv. While still heavily WIP the reduction in > odd stuff (check e.g. HandleCatchupInterrupt()) made me rather happy. Actually, the even more important reason is that that would allow us to throw errors/fatals sanely in interrupts because we wouldn't possibly jump through openssl anymore... Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
Commits
-
Assert that WaitLatchOrSocket callers cannot wait only for writability.
- e42a21b9e6c9 9.2.0 cited