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

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

  1. Assert that WaitLatchOrSocket callers cannot wait only for writability.