- 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:
Andi Gutmans 2000-02-16 13:34:07 +00:00
parent af220872b9
commit d66d7c6e3a

View File

@ -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;
}