[Dovecot] [PATCH] net_connect_*(): Wait for fd to complete connect(2) when fd is non-blocking

SATOH Fumiyasu fumiyas at osstech.jp
Sat Jul 30 19:41:22 EEST 2011


Hi,

Dovecot ignores EINPROGRESS on connect(2) for non-blocking fd.
This is wrong. After that, read(2) to fd (or write(2) to fd) fails
with ENOTCONN if the connection of fd is not completed.

The attached patch fixes this problem.

-- 
-- Name: SATOH Fumiyasu (fumiyas @ osstech co jp)
-- Business Home: http://www.OSSTech.co.jp/
-- Personal Home: http://www.SFO.jp/blog/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot-2.0.13-wait-for-fd-to-complete-connect.patch
Type: text/x-diff
Size: 2278 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20110731/89043659/attachment-0001.bin>


More information about the dovecot mailing list