Hi Willy, Lukas,

Thank you for your quick replies.

2013/9/3 Willy Tarreau <[email protected]>
>
> It would be nice if you could add a "perror("send_proxy")" just before
> goto out_error. I suspect you're getting ENOTCONN that is correctly
> handled in raw_sock.c but not here.
>

 ./haproxy -f /usr/local/etc/haproxy.conf -d
Available polling systems :
     kqueue : pref=300,  test result OK
       poll : pref=200,  test result OK
     select : pref=150,  test result FAILED
Total: 3 (2 usable), will use kqueue.
Using kqueue() as the polling mechanism.
00000001:ddos.accept(0004)=0006 from [127.0.0.1:12187]
00000001:ddos.clireq[0006:ffff]: GET / HTTP/1.1
00000001:ddos.clihdr[0006:ffff]: User-Agent: curl/7.31.0
00000001:ddos.clihdr[0006:ffff]: Host: 127.0.0.1
00000001:ddos.clihdr[0006:ffff]: Accept: */*
send_proxy: Socket is not connected
00000001:ddos.clicls[0006:0007]
00000001:ddos.closed[0006:0007]


Alternately, could you try the following change :
>
>    471 -              if (errno == EAGAIN)
>    471 +              if (errno == EAGAIN || errno == ENOTCONN)
>

With this change send-proxy work well :)

Thanks.

-- 

David BERARD

contact(at)davidberard.fr

GPG|PGP KeyId 0xC8533354

GPG|PGP Key http://davidberard.fr/C8533354.gpgkey

* No electrons were harmed in the transmission of this email *

Reply via email to