Re: Escaping from blocked send() reprised.
Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
From: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
To: andres@2ndquadrant.com
Cc: hlinnakangas@vmware.com, robertmhaas@gmail.com,
pgsql-hackers@postgresql.org
Date: 2014-10-09T05:06:35Z
Lists: pgsql-hackers
Attachments
- 0004-Process_die_intr_while_writing.patch (text/x-patch) patch 0004
Hello, simplly inhibit set retry flag when ProcDiePending in my_sock_write seems enough. But it returns with SSL_ERROR_SYSCALL not SSL_ERROR_WANT_WRITE so I modified the patch 4 as the attached patch. Finally, the attached patch works as expected with Andres's patch 1-3. regards, -- Kyotaro Horiguchi NTT Open Source Software Center
Commits
-
Assert that WaitLatchOrSocket callers cannot wait only for writability.
- e42a21b9e6c9 9.2.0 cited