aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_file_aio_read.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2019-01-24 22:00:44 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2019-01-24 22:00:44 +0300
commit38196b8ba63f04830db0b8793eca738e162c6d8e (patch)
treed15f9f6054d5eaeb2cad2e9c2c92b369f76f8185 /src/os/unix/ngx_file_aio_read.c
parentf2cfcc09a05670583bbbf9ab193eb743892f7da1 (diff)
downloadnginx-38196b8ba63f04830db0b8793eca738e162c6d8e.tar.gz
nginx-38196b8ba63f04830db0b8793eca738e162c6d8e.zip
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/).
Diffstat (limited to 'src/os/unix/ngx_file_aio_read.c')
0 files changed, 0 insertions, 0 deletions