Skip to content

Commit

Permalink
Merge branch 'PHP-7.3' into PHP-7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Aug 30, 2019
2 parents b4088ba + e9cfd94 commit 27da21d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/fastcgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,8 @@ int fcgi_accept_request(fcgi_request *req)
if (in_shutdown) {
return -1;
}

req->hook.on_accept();
#ifdef _WIN32
if (!req->tcp) {
pipe = (HANDLE)_get_osfhandle(req->listen_socket);
Expand Down Expand Up @@ -1403,8 +1405,6 @@ int fcgi_accept_request(fcgi_request *req)
sa_t sa;
socklen_t len = sizeof(sa);

req->hook.on_accept();

FCGI_LOCK(req->listen_socket);
req->fd = accept(listen_socket, (struct sockaddr *)&sa, &len);
FCGI_UNLOCK(req->listen_socket);
Expand Down

0 comments on commit 27da21d

Please sign in to comment.