aboutsummaryrefslogtreecommitdiff
path: root/src/os
Commit message (Collapse)AuthorAge
...
* Added support for offloading read() in thread pools.Valentin Bartenev2015-03-14
|
* Thread pools implementation.Valentin Bartenev2015-03-14
|
* Renamed NGX_THREADS to NGX_OLD_THREADS because of deprecation.Ruslan Ermilov2015-03-04
| | | | It's mostly dead code and the original idea of worker threads has been rejected.
* Core: expose maximum values of time_t and ngx_int_t.Ruslan Ermilov2015-03-17
| | | | These are needed to detect overflows.
* Refactored ngx_linux_sendfile_chain() even more.Valentin Bartenev2015-02-27
| | | | | | The code that calls sendfile() was cut into a separate function. This simplifies EINTR processing, yet is needed for the following changes that add threads support.
* Refactored sendfile() AIO preload.Valentin Bartenev2015-02-11
| | | | | | | | This reduces layering violation and simplifies the logic of AIO preread, since it's now triggered by the send chain function itself without falling back to the copy filter. The context of AIO operation is now stored per file buffer, which makes it possible to properly handle cases when multiple buffers come from different locations, each with its own configuration.
* Fixed sendfile() trailers on OS X (8e903522c17a, 1.7.8).Maxim Dounin2015-01-13
| | | | | | | The trailer.count variable was not initialized if there was a header, resulting in "sendfile() failed (22: Invalid argument)" alerts on OS X if the "sendfile" directive was used. The bug was introduced in 8e903522c17a (1.7.8).
* Fixed building with musl libc (ticket #685).Maxim Dounin2014-12-24
|
* Style.Valentin Bartenev2014-11-19
|
* Fixed type of sendfile() return value on Linux.Valentin Bartenev2014-11-19
| | | | | There was no real problem since the amount of bytes can be sent is limited by NGX_SENDFILE_MAXSIZE to less than 2G. But that can be changed in the future
* Moved writev() handling code to a separate function.Valentin Bartenev2014-08-13
| | | | | This reduces code duplication and unifies debug logging of the writev() syscall among various send chain functions.
* Merged conditions in the ngx_*_sendfile_chain() functions.Valentin Bartenev2014-08-13
| | | | No functional changes.
* Moved the code for coalescing file buffers to a separate function.Valentin Bartenev2014-08-13
|
* Refactored ngx_solaris_sendfilev_chain().Valentin Bartenev2014-11-19
| | | | | | | Though ngx_solaris_sendfilev_chain() shouldn't suffer from the problem mentioned in d1bde5c3c5d2 since currently IOV_MAX on Solaris is 16, but this follows the change from 3d5717550371 in order to make the code look similar to other systems and potentially eliminates the problem in the future.
* Introduced the ngx_output_chain_to_iovec() function.Valentin Bartenev2014-10-07
| | | | | It deduplicates code of the send chain functions and uses only preallocated memory, which completely solves the problem mentioned in d1bde5c3c5d2.
* Renamed ngx_handle_sent_chain() to ngx_chain_update_sent().Valentin Bartenev2014-11-19
| | | | No functional changes.
* Events: introduced cancelable timers.Valentin Bartenev2014-08-13
|
* Events: removed broken thread support from event timers.Valentin Bartenev2014-08-25
| | | | | It's mostly dead code. And the idea of thread support for this task has been deprecated.
* Win32: made build-able with MinGW-w64 gcc.Kouhei Sutou2014-10-15
|
* Core: added limit to recv_chain().Roman Arutyunyan2014-10-28
|
* Style.Maxim Dounin2014-10-14
|
* Win32: suppressed warnings by "-Werror=sign-compare".Kouhei Sutou2014-10-11
|
* Fixed counting of sent bytes in the send chain functions on EINTR.Valentin Bartenev2014-08-27
| | | | | | Previously, a value of the "send" variable wasn't properly adjusted in a rare case when syscall was interrupted by a signal. As a result, these functions could send less data than the limit allows.
* Removed duplicate initialization of the "rev" variable.Valentin Bartenev2014-09-22
|
* Generalized definitions of the number of preallocated iovec's.Valentin Bartenev2014-08-13
| | | | No functional changes.
* Reduced difference between the send chain functions.Valentin Bartenev2014-08-13
| | | | No functional changes. This follows the change from ad137a80919f.
* Merged implementations of ngx_readv_chain().Valentin Bartenev2014-08-13
| | | | | There's no real need in two separate implementations, with and without kqueue support.
* Removed the "complete" variable from various send chain functions.Valentin Bartenev2014-08-13
| | | | | It was made redundant by the previous change, since the "sent" variable is no longer modified.
* Moved the code for adjusting sent buffers in a separate function.Valentin Bartenev2014-08-13
|
* Fixed writev() debug log message in ngx_darwin_sendfile_chain().Valentin Bartenev2014-08-13
|
* Added ngx_init_setproctitle() return code check.Maxim Dounin2014-09-08
| | | | | | | | The ngx_init_setproctitle() function, as used on systems without setproctitle(3), may fail due to memory allocation errors, and therefore its return code needs to be checked. Reported by Markus Linnala.
* Events: removed broken thread support from posted events.Valentin Bartenev2014-09-01
| | | | | It's mostly dead code. And the idea of thread support for this task has been deprecated.
* Core: exit on ngx_pnalloc() failure.Piotr Sikora2014-08-01
| | | | Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
* Style: use ngx_free() instead of free().Tatsuhiko Kubo2014-08-03
|
* Bigger iovec buffer in ngx_readv_chain().Maxim Dounin2014-07-28
| | | | | | This helps to reduce likelyhood of memory allocations in ngx_readv_chain(), which are known to lead to noticeable effects in some cases, see http://mailman.nginx.org/pipermail/nginx/2014-July/044512.html.
* Style: keep return type and function name on different lines.Piotr Sikora2014-07-08
| | | | Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
* Style: add whitespace between control statement and parentheses.Piotr Sikora2014-07-08
| | | | Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
* Win32: ngx_open_dir() and ngx_close_dir() fixes.Maxim Dounin2014-07-05
| | | | | | | The ngx_open_dir() function changed to restore name passed to it. This fixes removing destination directory in dav module, as caught by dav.t. The ngx_close_dir() function introduced to properly convert errors, as FindClose() returns 0 on error.
* FreeBSD has migrated to Bugzilla.Sergey Kandaurov2014-06-19
|
* Configure: added -Wno-deprecated-declarations on OS X.Maxim Dounin2014-05-28
| | | | | | | Previous workaround to avoid warnings on OS X due to deprecated system OpenSSL library (introduced in a3870ea96ccd) no longer works, as the MAC_OS_X_VERSION_MIN_REQUIRED macro is ignored on OS X 10.9 if a compiler used supports __attribute__(availability).
* Events: use eventfd() instead of syscall(SYS_eventfd) if possible.Ruslan Ermilov2014-05-23
| | | | | | | | | This fixes --with-file-aio support on systems that lack eventfd() syscall, notably aarch64 Linux. The syscall(SYS_eventfd) may still be necessary on systems that have eventfd() syscall in the kernel but lack it in glibc, e.g. as seen in the current CentOS 5 release.
* Added syslog support for error_log and access_log directives.Vladimir Homutov2014-05-12
|
* Configure: the --build= option.Ruslan Ermilov2014-05-20
| | | | If set, its value is output in "nginx -v" and in the error log.
* Win32: fixed cpu hog by cache manager on exit (ticket #514).Maxim Dounin2014-03-31
| | | | | | The "ngx_quit" may be reset by the worker thread before it's seen by a ngx_cache_manager_thread(), resulting in an infinite loop. Make sure to test ngx_exiting as well.
* Added #ifndef around NGX_HAVE_CASELESS_FILESYSTEM define.Maxim Dounin2014-03-31
| | | | | | This brings Cygwin compilation in line with other case-insensitive systems (notably win32 and OS X) where one can force case sensitivity using -DNGX_HAVE_CASELESS_FILESYSTEM=0.
* Added connection serial number in logging of left open sockets.Sergey Kandaurov2014-03-06
|
* Win32: MSVC 2013 compatibility.Maxim Dounin2014-02-13
| | | | | Warnings about GetVersionEx() deprecation silenced. Precompiled object linked in.
* Use ngx_socket_errno where appropriate.Piotr Sikora2014-02-03
| | | | Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
* Core: handle getsockopt(TCP_FASTOPEN) failures.Piotr Sikora2014-01-30
| | | | | | | | | | Linux returns EOPNOTSUPP for non-TCP sockets and ENOPROTOOPT for TCP sockets, because getsockopt(TCP_FASTOPEN) is not implemented so far. While there, lower the log level from ALERT to NOTICE to match other getsockopt() failures. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
* Win32: support for UTF-16 surrogate pairs (ticket #457).Maxim Dounin2014-01-04
|