The official NGINX Open Source repository.
Go to file
Maxim Dounin 38196b8ba6 Win32: detection of connect() errors in select().
On Windows, connect() errors are only reported via exceptfds descriptor set
from select().  Previously exceptfds was set to NULL, and connect() errors
were not detected at all, so connects to closed ports were waiting till
a timeout occurred.

Since ongoing connect() means that there will be a write event active,
except descriptor set is copied from the write one.  While it is possible
to construct except descriptor set as a concatenation of both read and write
descriptor sets, this looks unneeded.

With this change, connect() errors are properly detected now when using
select().  Note well that it is not possible to detect connect() errors with
WSAPoll() (see https://daniel.haxx.se/blog/2012/10/10/wsapoll-is-broken/).
2019-01-24 22:00:44 +03:00
auto Win32: enabled both select and poll on Windows by default. 2019-01-24 22:00:13 +03:00
conf MIME: added font/woff2 type (ticket #1243). 2018-06-15 17:29:55 +03:00
contrib Contrib: vim syntax, update core and 3rd party module directives. 2018-12-24 16:30:10 +02:00
docs nginx-1.15.8-RELEASE 2018-12-25 17:53:03 +03:00
misc Win32: properly enabled select on Windows. 2019-01-24 21:51:00 +03:00
src Win32: detection of connect() errors in select(). 2019-01-24 22:00:44 +03:00
.hgtags release-1.15.8 tag 2018-12-25 17:53:03 +03:00