wrong $bytes_sent on nginx-1.8.0 if aio threads is enabled
George .
george at ucdn.com
Fri May 15 14:45:44 UTC 2015
Hi,
I found following bug in nginx-1.8.0:
if aio is configured with threads support - sometime (one in thousands
requests) $bytes_sent contains only length of the header. I'm attaching my
nginx.conf, build params and simple python script I'm using the reproduce
this issue.
Here is the output of test script when the problem appears:
.
.
.
received: 101700000 from access_log : 101700000 on 26 iteration
127.0.0.1 - - [15/May/2015 17:27:45] "GET /test HTTP/1.0" 200 -
127.0.0.1 - - [15/May/2015 17:27:47] "GET /test HTTP/1.0" 200 -
received: 101700000 from access_log : 101700000 on 27 iteration
127.0.0.1 - - [15/May/2015 17:27:58] "GET /test HTTP/1.0" 200 -
127.0.0.1 - - [15/May/2015 17:28:00] "GET /test HTTP/1.0" 200 -
received: 101700000 from access_log : 101690000 on 28 iteration
test failed!!
also in access_log file"
.
.
.
10170 GET /test HTTP/1.1
10170 GET /test HTTP/1.1
10170 GET /test HTTP/1.1
170 GET /test HTTP/1.1
10170 GET /test HTTP/1.1
10170 GET /test HTTP/1.1
.
.
Best regards,
George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150515/84114daa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx.conf
Type: application/octet-stream
Size: 869 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150515/84114daa/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: my_configure
Type: application/octet-stream
Size: 604 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150515/84114daa/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: thread_bad_sent_bytes.py
Type: text/x-python
Size: 2354 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150515/84114daa/attachment.py>
More information about the nginx-devel
mailing list