mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
Revert wrong fix
This commit is contained in:
parent
0c54f6f72b
commit
e0beb7fc71
@ -617,12 +617,8 @@ static inline void fcgi_close(fcgi_request *req, int force, int destroy)
|
||||
if (is_impersonate) {
|
||||
RevertToSelf();
|
||||
}
|
||||
#else
|
||||
#if 1
|
||||
shutdown(req->fd, 2);
|
||||
#else
|
||||
close(req->fd);
|
||||
#endif
|
||||
#endif
|
||||
req->fd = -1;
|
||||
}
|
||||
@ -857,8 +853,10 @@ int fcgi_write(fcgi_request *req, fcgi_request_type type, const char *str, int l
|
||||
|
||||
int fcgi_finish_request(fcgi_request *req)
|
||||
{
|
||||
fcgi_flush(req, 1);
|
||||
fcgi_close(req, 0, 1);
|
||||
if (req->fd >= 0) {
|
||||
fcgi_flush(req, 1);
|
||||
fcgi_close(req, 0, 1);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user