Hello,
I'm using the bnull-transform example and sometimes if connections are
terminated abruptly it can cause a SIGPIPE, I've spent a good amount
of time trying to track down the cause and have been unable to do so.
Also, the bnull-transform.c code isn't up to date with the latest API
so I attached a patch that will correct the datatypes in
handle_buffering() from int to int64_t, also, I added a few casts to
prevent errors when compiling with -Wall.

To reproduce the bug I'm using ab with a high level of concurrency and
killing ab to force the connections closed, the following command will
demonstrate this:

for (( ; ; )) do ab -n 10000 -c 210 http://127.0.0.1:8000/skeleton &
sleep 2; killall ab; done;

After a few iterations of killing ab it should cause a SIGPIPE in
traffic_server. As I've said, I've looked into this for quite a while
before emailing this list so any help or advice would be greatly
appreciated.

Best,
Brian

Reply via email to