|Summary:||ApacheBench: write_request returns after EAGAIN|
|Product:||Apache httpd-2||Reporter:||Stefan Fleiter <stefan.fleiter>|
|Component:||support||Assignee:||Apache HTTPD Bugs Mailing List <bugs>|
|Attachments:||Patch for handling of EAGAIN and totalposted in write_request|
Description Stefan Fleiter 2006-03-06 09:47:10 UTC
write_request of ab.c returns on EAGAIN so writing of data is never finished. This can be easily reproduced by sending large post requests to a server. The calculation of totalposted is incorrect, the to be written bytes are added (c->rwrite) instead of the written (c->rwrote). The attached patch fixes the EAGAIN case und makes calculation of totalposted correct, even in the case of send failures. Thanks a lot for an otherwise great beanchmarking tool.
Comment 1 Stefan Fleiter 2006-03-06 09:51:16 UTC
Created attachment 17839 [details] Patch for handling of EAGAIN and totalposted in write_request