Hi,List,
I got a 1.5 dev22 issue on freebsd 10-stable. It reported like below,
it's generate about 2-3 errors per minute when using "http-keep-alive"
,it's about 5-8 errors per minute with "http-server-close". I tried use
"source ip:port1-port2" in "server" section, but nothing helped. Then I
stop it,compiled haproxy 1.4-25 and execute it, the error messages
disappears. Is it a version 1.5 bug ?
Regards
Simon
Apr 15 14:56:05 localhost haproxy[17725]: Connect() failed for backend
squid3-bulk-keepalive: local address already in use.
Apr 15 14:56:10 localhost haproxy[17725]: Connect() failed for backend
squid3-bulk-keepalive: local address already in use.
Apr 15 14:56:12 localhost haproxy[17725]: Connect() failed for backend
squid3-bulk-keepalive: local address already in use.
Apr 15 14:56:17 localhost haproxy[17725]: Connect() failed for backend
squid3-bulk-keepalive: local address already in use.
Apr 15 14:56:20 localhost haproxy[17725]: Connect() failed for backend
squid3-bulk-keepalive: local address already in use.
Apr 15 14:56:24 localhost haproxy[17725]: Connect() failed for backend
squid3-bulk-keepalive: local address already in use.
Apr 15 14:56:26 localhost haproxy[17725]: Connect() failed for backend
squid3-bulk-keepalive: local address already in use.
net.inet.ip.portrange.lowfirst: 1023
net.inet.ip.portrange.lowlast: 600
net.inet.ip.portrange.first: 12000
net.inet.ip.portrange.last: 65535
net.inet.ip.portrange.hifirst: 12000
net.inet.ip.portrange.hilast: 65535
# sockstat -4 |wc -l
13630
# netstat -an | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a,S[a]}'
LISTEN 3
FIN_WAIT_1 1406
FIN_WAIT_2 41
SYN_SENT 2
LAST_ACK 540
CLOSING 131
CLOSE_WAIT 41
CLOSED 5
SYN_RCVD 53
TIME_WAIT 2183
ESTABLISHED 8557
# haproxy -vv
HA-Proxy version 1.5-dev22-1a34d57 2014/02/03
Copyright 2000-2014 Willy Tarreau <[email protected]>
Build options :
TARGET = freebsd
CPU = generic
CC = cc
CFLAGS = -pipe -O2 -fno-strict-aliasing -DFREEBSD_PORTS
OPTIONS = USE_GETADDRINFO=1 USE_ZLIB=1 USE_OPENSSL=1 USE_PCRE=1
USE_PCRE_JIT=1
Default settings :
maxconn = 2000, bufsize = 16384, maxrewrite = 8192, maxpollevents = 200
Encrypted password support via crypt(3): yes
Built with zlib version : 1.2.8
Compression algorithms supported : identity, deflate, gzip
Built with OpenSSL version : OpenSSL 1.0.1g 7 Apr 2014
Running on OpenSSL version : OpenSSL 1.0.1g 7 Apr 2014
OpenSSL library supports TLS extensions : yes
OpenSSL library supports SNI : yes
OpenSSL library supports prefer-server-ciphers : yes
Built with PCRE version : 8.34 2013-12-15
PCRE library supports JIT : yes
Available polling systems :
kqueue : pref=300, test result OK
poll : pref=200, test result OK
select : pref=150, test result OK
Total: 3 (3 usable), will use kqueue.