cvs: /php4/sapi/isapi php4isapi.c
| From: | Andi Gutmans | Date: | Wed, 16 Feb 2000 13:34:37 +0000 |
| Subject: | cvs: /php4/sapi/isapi php4isapi.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-10336@lists.php.net to get a copy of this message | ||
andi Wed Feb 16 05:34:37 2000 EDT
Modified files:
/php4/sapi/isapi php4isapi.c
Log:
- 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.
Index: php4/sapi/isapi/php4isapi.c
diff -u php4/sapi/isapi/php4isapi.c:1.25 php4/sapi/isapi/php4isapi.c:1.26
--- php4/sapi/isapi/php4isapi.c:1.25 Tue Feb 15 15:31:08 2000
+++ php4/sapi/isapi/php4isapi.c Wed Feb 16 05:34:07 2000
@@ -136,9 +136,12 @@
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;
}