aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_socket.h
Commit message (Collapse)AuthorAge
* Added shutdown macros for win32 required for QUIC.Sergey Kandaurov2022-11-22
|
* Events: available bytes calculation via ioctl(FIONREAD).Maxim Dounin2019-10-17
| | | | | | | | | | | | | | | | | | | | | This makes it possible to avoid looping for a long time while working with a fast enough peer when data are added to the socket buffer faster than we are able to read and process them (ticket #1431). This is basically what we already do on FreeBSD with kqueue, where information about the number of bytes in the socket buffer is returned by the kevent() call. With other event methods rev->available is now set to -1 when the socket is ready for reading. Later in ngx_recv() and ngx_recv_chain(), if full buffer is received, real number of bytes in the socket buffer is retrieved using ioctl(FIONREAD). Reading more than this number of bytes ensures that even with edge-triggered event methods the event will be triggered again, so it is safe to stop processing of the socket and switch to other connections. Using ioctl(FIONREAD) only after reading a full buffer is an optimization. With this approach we only call ioctl(FIONREAD) when there are at least two recv()/readv() calls.
* Win32: added WSAPoll() support.Maxim Dounin2019-01-24
| | | | | | | | | | | | WSAPoll() is only available with Windows Vista and newer (and only available during compilation if _WIN32_WINNT >= 0x0600). To make sure the code works with Windows XP, we do not redefine _WIN32_WINNT, but instead load WSAPoll() dynamically if it is not available during compilation. Also, sockets are not guaranteed to be small integers on Windows. So an index array is used instead of NGX_USE_FD_EVENT to map events to connections.
* Win32: MSVC 2015 compatibility.Maxim Dounin2015-08-17
| | | | | | | Resolved warnings about declarations that hide previous local declarations. Warnings about WSASocketA() being deprecated resolved by explicit use of WSASocketW() instead of WSASocket(). When compiling without IPv6 support, WinSock deprecated warnings are disabled to allow use of gethostbyname().
* Copyright updated.Maxim Konovalov2012-01-18
|
* style fix: remove trailing spacesIgor Sysoev2007-12-01
|
* TransmitPackets(), ConnectEx(), and DisconnectEx()Igor Sysoev2007-11-11
|
* nginx-0.1.25-RELEASE importrelease-0.1.25Igor Sysoev2005-03-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *) Bugfix: nginx did run on Linux parisc. *) Feature: nginx now does not start under FreeBSD if the sysctl kern.ipc.somaxconn value is too big. *) Bugfix: if a request was internally redirected by the ngx_http_index_module module to the ngx_http_proxy_module or ngx_http_fastcgi_module modules, then the index file was not closed after request completion. *) Feature: the "proxy_pass" can be used in location with regular expression. *) Feature: the ngx_http_rewrite_filter_module module supports the condition like "if ($HTTP_USER_AGENT ~ MSIE)". *) Bugfix: nginx started too slow if the large number of addresses and text values were used in the "geo" directive. *) Change: a variable name must be declared as "$name" in the "geo" directive. The previous variant without "$" is still supported, but will be removed soon. *) Feature: the "%{VARIABLE}v" logging parameter. *) Feature: the "set $name value" directive. *) Bugfix: gcc 4.0 compatibility. *) Feature: the --with-openssl-opt=OPTIONS autoconfiguration directive.
* nginx-0.1.8-RELEASE importrelease-0.1.8Igor Sysoev2004-11-20
| | | | | | | | | *) Bugfix: in the ngx_http_autoindex_module if the long file names were in the listing. *) Feature: the "^~" modifier in the location directive. *) Feature: the proxy_max_temp_file_size directive.
* nginx-0.1.5-RELEASE importrelease-0.1.5Igor Sysoev2004-11-11
| | | | | | | | | | | | | | | | | | | | | | | | *) Bugfix: on Solaris and Linux there may be too many "recvmsg() returned not enough data" alerts. *) Bugfix: there were the "writev() failed (22: Invalid argument)" errors on Solaris in proxy mode without sendfile. On other platforms that do not support sendfile at all the process got caught in an endless loop. *) Bugfix: segmentation fault on Solaris in proxy mode and using sendfile. *) Bugfix: segmentation fault on Solaris. *) Bugfix: on-line upgrade did not work on Linux. *) Bugfix: the ngx_http_autoindex_module module did not escape the spaces, the quotes, and the percent signs in the directory listing. *) Change: the decrease of the copy operations. *) Feature: the userid_p3p directive.
* nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyrightIgor Sysoev2004-09-29
|
* nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused filesIgor Sysoev2004-09-28
|
* nginx-0.0.3-2004-03-23-09:01:52 importIgor Sysoev2004-03-23
|
* nginx-0.0.2-2004-03-09-22:47:07 importIgor Sysoev2004-03-09
|
* nginx-0.0.1-2003-11-17-00:49:42 importIgor Sysoev2003-11-16
|
* nginx-0.0.1-2003-06-12-09:54:39 importIgor Sysoev2003-06-12
|
* nginx-0.0.1-2003-06-11-19:28:34 importIgor Sysoev2003-06-11
|
* nginx-0.0.1-2003-06-03-19:42:58 importIgor Sysoev2003-06-03
|
* nginx-0.0.1-2003-02-06-20:21:13 importIgor Sysoev2003-02-06
|
* nginx-0.0.1-2002-09-16-19:01:44 importIgor Sysoev2002-09-16
|
* nginx-0.0.1-2002-09-02-18:48:24 importIgor Sysoev2002-09-02
|
* nginx-0.0.1-2002-08-26-19:18:19 importIgor Sysoev2002-08-26
|
* nginx-0.0.1-2002-08-20-18:48:28 importIgor Sysoev2002-08-20
|
* nginx-0.0.1-2002-08-16-19:27:03 importIgor Sysoev2002-08-16