view src/os/win32/nginx_icon16.xpm @ 4665:25611746fee7 stable-1.2

Merge of r4619: accept moderation on EMFILE/ENFILE. In case of EMFILE/ENFILE returned from accept() we disable accept events, and (in case of no accept mutex used) arm timer to re-enable them later. With accept mutex we just drop it, and rely on normal accept mutex handling to re-enable accept events once it's acquired again. As we now handle errors in question, logging level was changed to "crit" (instead of "alert" used for unknown errors). Note: the code might call ngx_enable_accept_events() multiple times if there are many listen sockets. The ngx_enable_accept_events() function was modified to check if connection is already active (via c->read->active) and skip it then, thus making multiple calls safe.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 04 Jun 2012 11:10:36 +0000
parents 4ac89c5aa10d
children
line wrap: on
line source

/* XPM */
static char * nginx_xpm[] = {
"16 16 2 2",
/* colors */
"   c none",
"GG c #009900",
/* pixels */
"                                ",
"        GGGGGGGGGGGGGGGG        ",
"        GGGGGGGGGGGGGGGG        ",
"      GGGGGGGGGGGGGGGGGGGG      ",
"      GGGGGG        GGGGGG      ",
"    GGGGGG            GGGGGG    ",
"    GGGGGG                      ",
"  GGGGGG      GGGGGGGGGGGGGGGG  ",
"  GGGGGG    GGGGGGGGGGGGGGGGGG  ",
"    GGGGGG    GGGGGGGGGGGGGG    ",
"    GGGGGG            GGGGGG    ",
"      GGGGGG        GGGGGG      ",
"      GGGGGGGGGGGGGGGGGGGG      ",
"        GGGGGGGGGGGGGGGG        ",
"        GGGGGGGGGGGGGGGG        ",
"                                "
};