mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
- In IIS ISAPI when the user presses the STOP button while the script is
running make sure it stops gracefully. Before it stuck the server.
This commit is contained in:
parent
af220872b9
commit
d66d7c6e3a
@ -136,9 +136,12 @@ static int sapi_isapi_ub_write(const char *str, uint str_length)
|
||||
DWORD num_bytes = str_length;
|
||||
LPEXTENSION_CONTROL_BLOCK ecb;
|
||||
SLS_FETCH();
|
||||
ELS_FETCH();
|
||||
|
||||
ecb = (LPEXTENSION_CONTROL_BLOCK) SG(server_context);
|
||||
ecb->WriteClient(ecb->ConnID, (char *) str, &num_bytes, HSE_IO_SYNC );
|
||||
if (ecb->WriteClient(ecb->ConnID, (char *) str, &num_bytes, HSE_IO_SYNC ) == FALSE) {
|
||||
longjmp(EG(bailout), 1);
|
||||
}
|
||||
return num_bytes;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user