Mercurial > hg > nginx-quic
annotate contrib/README @ 7440:6d4bc025c5a7
Prevented scheduling events on a shared connection.
A shared connection does not own its file descriptor, which means that
ngx_handle_read_event/ngx_handle_write_event calls should do nothing for it.
Currently the c->shared flag is checked in several places in the stream proxy
module prior to calling these functions. However it was not done everywhere.
Missing checks could lead to calling
ngx_handle_read_event/ngx_handle_write_event on shared connections.
The problem manifested itself when using proxy_upload_rate and resulted in
either duplicate file descriptor error (e.g. with epoll) or incorrect further
udp packet processing (e.g. with kqueue).
The fix is to set and reset the event active flag in a way that prevents
ngx_handle_read_event/ngx_handle_write_event from scheduling socket events.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 14 Jan 2019 20:36:23 +0300 |
parents | 1bdf906bba99 |
children |
rev | line source |
---|---|
537 | 1 |
667 | 2 geo2nginx.pl by Andrei Nigmatulin |
3 | |
4 The perl script to convert CSV geoip database ( free download | |
5 at http://www.maxmind.com/app/geoip_country ) to format, suitable | |
6 for use by the ngx_http_geo_module. | |
7 | |
537 | 8 |
667 | 9 unicode2nginx by Maxim Dounin |
10 | |
11 The perl script to convert unicode mappings ( available | |
12 at http://www.unicode.org/Public/MAPPINGS/ ) to the nginx | |
13 configuration file format. | |
14 Two generated full maps for windows-1251 and koi8-r. | |
15 | |
5461
1bdf906bba99
Contrib: added vim to README.
Maxim Dounin <mdounin@mdounin.ru>
parents:
667
diff
changeset
|
16 |
1bdf906bba99
Contrib: added vim to README.
Maxim Dounin <mdounin@mdounin.ru>
parents:
667
diff
changeset
|
17 vim by Evan Miller |
1bdf906bba99
Contrib: added vim to README.
Maxim Dounin <mdounin@mdounin.ru>
parents:
667
diff
changeset
|
18 |
1bdf906bba99
Contrib: added vim to README.
Maxim Dounin <mdounin@mdounin.ru>
parents:
667
diff
changeset
|
19 Syntax highlighting of nginx configuration for vim, to be |
1bdf906bba99
Contrib: added vim to README.
Maxim Dounin <mdounin@mdounin.ru>
parents:
667
diff
changeset
|
20 placed into ~/.vim/. |
1bdf906bba99
Contrib: added vim to README.
Maxim Dounin <mdounin@mdounin.ru>
parents:
667
diff
changeset
|
21 |