summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conn_connect.c (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2020-04-08Removed unused code related to testing of address binding.Valentin Bartenev1-1/+1
2019-11-14Fixed connect(2) errors processing on old Linuxes.Igor Sysoev1-26/+34
While connect(2) states that non-blocking connect should use EPOLLOUT: EINPROGRESS The socket is non-blocking and the connection cannot be completed immediately. It is possible to select(2) or poll(2) for completion by selecting the socket for writing. After select(2) indicates writability, use getsockopt(2) to read the SO_ERROR option at level SOL_SOCKET to determine whether connect() completed successfully (SO_ERROR is zero) or unsuccessfully (SO_ERROR is one of the usual error codes listed here, explaining the reason for the failure). On connect error, Linux 2.6.32 (CentOS 6) may return EPOLLRDHUP, EPOLLERR, EPOLLHUP, EPOLLIN, but not EPOLLOUT.
2018-01-24Fixed formatting in nxt_sprintf() and logging.Sergey Kandaurov1-1/+1
2018-01-24Using size_t for the field width type of the "%*s" specifier.Sergey Kandaurov1-1/+2
2017-06-14nxt_event_conn_... functions and structures have been renamedIgor Sysoev1-20/+20
to nxt_conn_...
2017-06-06C99 style declaration of connection states.Igor Sysoev1-1/+1
2017-02-22I/O operations refactoring.Igor Sysoev1-38/+11
2017-02-07Event engines refactoring.Igor Sysoev1-2/+2
2017-01-31Event engine timers refactoring.Igor Sysoev1-3/+1
2017-01-30nxt_event_timer has been renamed to nxt_timer.Igor Sysoev1-3/+3
2017-01-27Work queues refactoring.Igor Sysoev1-5/+4
2017-01-23Introducing tasks.Igor Sysoev1-30/+41