ENOTCONN from recv() on illumos

2014-03-03 Thread Joshua M. Clulow
Hi folks, I was testing haproxy-1.5-dev22 on SmartOS (an illumos-based system) and ran into a problem. There's a small window after non-blocking connect() is called, but before the TCP connection is established, where recv() may return ENOTCONN. On Linux, the behaviour here seems to be always

RE: ENOTCONN from recv() on illumos

2014-03-03 Thread Lukas Tribus
Hi Joshua, Hi folks, I was testing haproxy-1.5-dev22 on SmartOS (an illumos-based system) and ran into a problem. There's a small window after non-blocking connect() is called, but before the TCP connection is established, where recv() may return ENOTCONN. On Linux, the behaviour here

Re: ENOTCONN from recv() on illumos

2014-03-03 Thread Willy Tarreau
Hi guys, On Tue, Mar 04, 2014 at 12:30:18AM +0100, Lukas Tribus wrote: Hi Joshua, Hi folks, I was testing haproxy-1.5-dev22 on SmartOS (an illumos-based system) and ran into a problem. There's a small window after non-blocking connect() is called, but before the TCP connection is