Hi Cyril, On Sun, Nov 14, 2010 at 02:57:42PM +0100, Cyril Bonté wrote: > Hi Willy, > > Le vendredi 12 novembre 2010 16:45:54, Willy Tarreau a écrit : > > Thank you Cyril, I'll forward all that material to Emeric in case > > he finds a clue about that. I hope we're not hitting buffer size > > limits or things like this on the unix sockets :-/ > > OK, it took me some times and a lot of tests/modifications in stunnel and > haproxy but I've found the limit. > In proto_uxst.c there's a call to listen(sock, 0)
Ah cool, thank you for chasing this one down ! > I tried with listen(sock, 2000) and could run > $ ab -n10000 -c500 https://localhost:8443/ > $ httperf --server localhost --port 8443 --uri / --rate 200 \ > --num-conn 10000--ssl --num-call 1 > without any problem, which was not the case before. > > Now, as it's shared with the stats, I don't know what to do. > Should we use the listener backlog value for both or should we keep 0 for the > stats ? In my opinion, we should use the listener's backlog. This will require some code changes in order to be able to pass the backlog's size to create_uxst_socket(). On the other hand, this function is quite old now and is only used by uxst_bind_listener(). Probably that it will be easier to move its code there and get rid of the function. Do you want to send a patch with that ? Cheers, Willy

