]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
ab: Check and handle POLLOUT before POLLIN.
authorYann Ylavic <ylavic@apache.org>
Mon, 10 Jul 2023 09:08:14 +0000 (09:08 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 10 Jul 2023 09:08:14 +0000 (09:08 +0000)
commit53f429b9f4871e169a3f9b1d66599e091bc31bac
tree449fc8b40704192829a8b208ddf5bcdcbb1dc3cd
parentcca42ea3a40e7cb396a4924d72d9f46aa51a6d47
ab: Check and handle POLLOUT before POLLIN.

connect() failures can return POLLOUT|POLLHUP and the polling loop should
take the POLLOUT branch in this case, not the POLLIN|POLLHUP one, so move
the check for POLLOUT first.

While at it, add some assert()ions to avoid infinite loops.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910911 13f79535-47bb-0310-9956-ffa450edef68
support/ab.c