Hi,

I've an issue with send-proxy on HAProxy-1.5-dev19 running on FreeBSD.
 
Since dev13 I can't get send-proxy to work on FreeBSD, connections to 
the backend server (another haproxy with accept-proxy bind option) are 
imediately closed.

Version dev12 works correctly on FreeBSD, and dev19 on Linux works too.

Connection seem to be closed in stream_interface.c (out_error) :

 470                 if (ret < 0) {
 471                         if (errno == EAGAIN)
 472                                 goto out_wait;
 473                         goto out_error;           <<<<<<
 474                 }

------------
# cat /usr/local/etc/haproxy.conf 
global
        log     /var/run/log local0 debug
        maxconn 4096
        uid     99
        gid     99
        daemon

defaults 
        log             global
        contimeout      5000
        clitimeout      50000
        srvtimeout      50000
        retries         0
        option          redispatch
        maxconn         2000

listen ddos 127.0.0.1:80
        mode    http
        server  myserver X.X.X.X:80 send-proxy

------------
# ./haproxy -v
HA-Proxy version 1.5-dev19 2013/06/17
Copyright 2000-2013 Willy Tarreau <[email protected]>

------------
# ./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:18493]
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: */*
00000001:ddos.srvcls[0006:0007]
00000001:ddos.clicls[0006:0007]
00000001:ddos.closed[0006:0007]

------------
# tcpdump
23:12:17.405476 IP HAPROXY_IP.32958 > SERVER_IP.80: Flags [S], seq 3939228300, 
win 65535, options [mss 1460,nop,wscale 8,sackOK,TS val 21313989 ecr 0], length 0
23:12:17.405537 IP SERVER_IP.80 > HAPROXY_IP.32958: Flags [S.], seq 763473061, 
ack 3939228301, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 7], 
length 0
23:12:17.405979 IP HAPROXY_IP.32958 > SERVER_IP.80: Flags [R], seq 3939228301, 
win 0, length 0

Best Regards,
________________________________________________________________________________
David BERARD

contact(at)davidberard.fr
________________________________________________________________________________
*           No electrons were harmed in the transmission of this email         *

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to