Mercurial > hg > nginx
annotate contrib/README @ 5970:74edc0ccf27a
Core: fixed a race resulting in extra sem_post()'s.
The mtx->wait counter was not decremented if we were able to obtain the lock
right after incrementing it. This resulted in unneeded sem_post() calls,
eventually leading to EOVERFLOW errors being logged, "sem_post() failed
while wake shmtx (75: Value too large for defined data type)".
To close the race, mtx->wait is now decremented if we obtain the lock right
after incrementing it in ngx_shmtx_lock(). The result can become -1 if a
concurrent ngx_shmtx_unlock() decrements mtx->wait before the added code does.
However, that only leads to one extra iteration in the next call of
ngx_shmtx_lock().
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 04 Feb 2015 16:22:43 +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 |