summaryrefslogtreecommitdiffhomepage
path: root/src/os/win32 (follow)
AgeCommit message (Collapse)AuthorFilesLines
2013-03-20Win32: disabled MSVC warning about '\0' not fitting into array.Valentin Bartenev1-0/+3
We believe that this warning produces more inconvience than real benefit. Here is an example to trigger: u_char a[4] = "test";
2012-12-17Implemented IPv6 support for URLs specified using domain names.Ruslan Ermilov1-0/+1
This includes "debug_connection", upstreams, "proxy_pass", etc. (ticket #92) To preserve compatibility, "listen" specified with a domain name selects the first IPv4 address, if available. If not available, the first IPv6 address will be used (ticket #186).
2012-09-28Correct plural form for "path" in the whole source base.Andrey Belov1-4/+4
2012-08-02Win32: fixed build with Visual Studio 2005 Express.Maxim Dounin1-0/+1
It is available via winetricks which makes it still usable, and has an old crtdefs.h which uses _CRT_SECURE_NO_DEPRECATE instead of _CRT_SECURE_NO_WARNINGS to suppress warnings. Reported by HAYASHI Kentaro, http://mailman.nginx.org/pipermail/nginx-devel/2012-August/002542.html
2012-07-23Win32: fixed cpu hog after process startup failure.Maxim Dounin1-0/+1
If ngx_spawn_process() failed while starting a process, the process handle was closed but left non-NULL in the ngx_processes[] array. The handle later was used in WaitForMultipleObjects() (if there were multiple worker processes configured and at least one worker process was started successfully), resulting in infinite loop. Reported by Ricardo V G: http://mailman.nginx.org/pipermail/nginx-devel/2012-July/002494.html
2012-06-25Style.Maxim Dounin1-1/+1
2012-06-18Fixed return type of ngx_strerror_init().Maxim Dounin2-2/+2
2012-06-05Win32: disallowed access to various non-canonical name variants.Maxim Dounin1-33/+164
This includes trailings dots and spaces, NTFS streams (and short names, as previously checked). The checks are now also done in ngx_file_info(), thus allowing to use the "try_files" directive to protect external scripts.
2012-05-11Accept moderation in case of EMFILE/ENFILE.Maxim Dounin1-0/+2
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.
2012-04-03Fixed spelling in multiline C comments.Ruslan Ermilov1-1/+1
2012-04-02Win32: improved ngx_mutex_init() stub (ticket #138).Maxim Dounin1-1/+12
This allows to run nginx with "master_process off" under Windows.
2012-04-02Win32: fixed memory allocation for shmem name (ticket #134).Maxim Dounin1-1/+1
2012-03-28Fixed win32 build after realpath changes in r4559.Maxim Dounin2-3/+3
2012-03-27Fixed unconditional MAX_PATH usage (ticket #22).Maxim Dounin1-0/+1
POSIX doesn't require it to be defined, and Debian GNU/Hurd doesn't define it. Note that if there is no MAX_PATH defined we have to use realpath() with NULL argument and free() the result.
2012-03-22Win32: added missing call to srand().Maxim Dounin1-0/+2
Found by Veracode.
2012-02-28Fixed spelling in single-line comments.Ruslan Ermilov1-1/+1
2012-01-18Copyright updated.Maxim Konovalov33-0/+33
2011-11-14Introduction of simple ngx_write_stderr() instead of ngx_log_stderr()Igor Sysoev1-0/+1
for output of ./configure options, etc., since ngx_log_stderr() output length is limited by 2048 characters defined as NGX_MAX_ERROR_STR.
2011-10-24malloc() debugging on MacOSX.Igor Sysoev1-0/+1
2011-10-20Fixing conflict with SDK off_t definition.Igor Sysoev1-1/+4
2011-10-20Recent SDKs allow to build IPV6 only for Windows XP or above.Igor Sysoev1-1/+1
2011-09-19Replaced "can not" with "cannot" and "could not" in a bunch of places.Ruslan Ermilov1-1/+1
Fixed nearby grammar errors.
2011-08-22Fix buffer overrun under Windows.Maxim Dounin1-1/+2
2011-07-24elimination of reading cache files by cache loaderIgor Sysoev1-0/+1
2011-05-16"$apr1", "{PLAIN}", and "{SSHA}" password methods in auth basic moduleIgor Sysoev2-2/+2
patch by Maxim Dounin
2011-04-22Use more precise stat.st_blocks to account cache size on UnixIgor Sysoev1-0/+1
instead of file length rounded to a file system block size. There is no similar way on Windows, so rounding to a cache->bsize is kept.
2011-01-20use SwitchToThread() instead of Sleep(0), because the laterIgor Sysoev1-1/+1
may not yield control, if there is no thread with higher priority
2010-11-25use copied strerror() messages and autoconfigured sys_nerr valueIgor Sysoev2-2/+11
2010-09-02add "Global\" prefix for signal eventsIgor Sysoev1-9/+11
2010-07-05fix building by owc12: GetLongPathName() is available since Win2K onlyIgor Sysoev1-1/+1
2010-06-29ngx_create_file_mapping()Igor Sysoev2-0/+107
2010-06-23style fixIgor Sysoev1-2/+2
2010-06-14do not free() stack allocated bufferIgor Sysoev1-1/+0
2010-04-22use lstat() for WebDAV DELETE, COPY, and MOVE to handle symlinksIgor Sysoev1-0/+4
2010-04-21use non-blocking open() not to hang on FIFO files, etc.Igor Sysoev1-0/+1
2010-03-25*) introduce ngx_time_sigsafe_update() to update the error log time onlyIgor Sysoev2-8/+8
*) change ngx_time_update() interface
2010-03-13*) use previously cached GMT offset value to update time from a signal handlerIgor Sysoev2-8/+8
*) change ngx_time_update() interface since there are no notification methods those return time
2010-03-03compare long file names in case-insensitive mode,Igor Sysoev3-1/+5
the bug had been introduced in r3418
2010-01-28disable Win32 short file namesIgor Sysoev1-14/+50
2009-12-15fix Win32 error messages when an temporary file replaces an existent file:Igor Sysoev2-13/+7
*) do not rename an already renamed file *) now ngx_win32_rename_file() returns error code *) do not log failure inside ngx_win32_rename_file()
2009-11-23add NGX_PROCESS_HELPER process statusIgor Sysoev2-7/+2
2009-11-17a cache manager thread handle was overwritten by a cache loader thread handle,Igor Sysoev1-2/+2
this caused an exit delay, the bug had been introduced in r3023
2009-11-15update allocation error messagesIgor Sysoev1-1/+1
2009-11-02style fixIgor Sysoev1-1/+0
2009-10-14*) reset cached dirent.d_type after stat()Igor Sysoev2-2/+2
this fixes slash after link to a directory in ngx_http_autoindex_module; *) use cached dirent.d_type as hint on all systems the issues has been introduced in r2235
2009-09-30read_aheadIgor Sysoev2-0/+9
2009-09-25use parents around NGX_ATOMIC_T_LEN valueIgor Sysoev1-1/+1
2009-09-25uniform ngx_directio_on/off() interface with other file functionsIgor Sysoev1-2/+2
2009-09-24test incomplete WriteFile()Igor Sysoev1-0/+7
2009-09-24log file name for read/write errorsIgor Sysoev1-2/+4