Skip to content

Commit 27da21d

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
2 parents b4088ba + e9cfd94 commit 27da21d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/fastcgi.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,8 @@ int fcgi_accept_request(fcgi_request *req)
13731373
if (in_shutdown) {
13741374
return -1;
13751375
}
1376+
1377+
req->hook.on_accept();
13761378
#ifdef _WIN32
13771379
if (!req->tcp) {
13781380
pipe = (HANDLE)_get_osfhandle(req->listen_socket);
@@ -1403,8 +1405,6 @@ int fcgi_accept_request(fcgi_request *req)
14031405
sa_t sa;
14041406
socklen_t len = sizeof(sa);
14051407

1406-
req->hook.on_accept();
1407-
14081408
FCGI_LOCK(req->listen_socket);
14091409
req->fd = accept(listen_socket, (struct sockaddr *)&sa, &len);
14101410
FCGI_UNLOCK(req->listen_socket);

0 commit comments

Comments
 (0)