Mercurial > hg > nginx-quic
annotate docs/html/index.html @ 6440:248aa2757332
Fixed timeouts with threaded sendfile() and subrequests.
If a write event happens after sendfile() but before we've got the
sendfile results in the main thread, this write event will be ignored.
And if no more events will happen, the connection will hang.
Removing the events works in the simple cases, but not always, as
in some cases events are added back by an unrelated code. E.g.,
the upstream module adds write event in the ngx_http_upstream_init()
to track client aborts.
Fix is to use wev->complete instead. It is now set to 0 before
a sendfile() task is posted, and it is set to 1 once a write event
happens. If on completion of the sendfile() task wev->complete is 1,
we know that an event happened while we were executing sendfile(), and
the socket is still ready for writing even if sendfile() did not sent
all the data or returned EAGAIN.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 18 Mar 2016 05:04:45 +0300 |
parents | ed470a7bf7fd |
children | 67c68cd973b8 |
rev | line source |
---|---|
4834 | 1 <!DOCTYPE html> |
450 | 2 <html> |
3 <head> | |
4 <title>Welcome to nginx!</title> | |
4834 | 5 <style> |
6 body { | |
7 width: 35em; | |
8 margin: 0 auto; | |
9 font-family: Tahoma, Verdana, Arial, sans-serif; | |
10 } | |
11 </style> | |
450 | 12 </head> |
4834 | 13 <body> |
14 <h1>Welcome to nginx!</h1> | |
15 <p>If you see this page, the nginx web server is successfully installed and | |
16 working. Further configuration is required.</p> | |
17 | |
18 <p>For online documentation and support please refer to | |
19 <a href="http://nginx.org/">nginx.org</a>.<br/> | |
20 Commercial support is available at | |
21 <a href="http://nginx.com/">nginx.com</a>.</p> | |
22 | |
23 <p><em>Thank you for using nginx.</em></p> | |
450 | 24 </body> |
25 </html> |