[PATCH] ngx_event_pipe: remove unnecessary timer

2015-10-17 Thread quink
A timer of 1 msec is not necessary take into account the resolutions of ngx_time() and p->start. If we don't consider the truncation error of ngx_time() and p->start, '1' should be '1000'. If we consider the truncation error, don't add timer if limit == 0 and discard '+ 1'. --- src/event/ngx_even

[PATCH] Win32: make buildable with MinGW-w64 gcc

2015-10-17 Thread Kouhei Sutou
Hi, The attached patch fixes the following warning: x86_64-w64-mingw32-gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/win32 -I objs \ -o objs/src/core/ngx_connection.o \ src/core/ngx