From: Rob Richards Date: Mon, 18 Apr 2011 08:24:49 +0000 (+0000) Subject: fix hang in SAPI deactivate when body is 4096 bytes or more X-Git-Tag: RELEASE_1_7_1~4 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e9ae111aa60f10b0c6dcf61b9d7a48a6e3473027;p=m6w6%2Fext-http fix hang in SAPI deactivate when body is 4096 bytes or more --- diff --git a/http_api.c b/http_api.c index 1943e12..183a44c 100644 --- a/http_api.c +++ b/http_api.c @@ -356,6 +356,7 @@ PHP_HTTP_API STATUS _http_get_request_body_ex(char **body, size_t *length, zend_ HTTP_G->read_post_data = 1; while (0 < (len = sapi_module.read_post(buf, 4096 TSRMLS_CC))) { + SG(read_post_bytes) += len; *body = erealloc(*body, *length + len + 1); memcpy(*body + *length, buf, len); *length += len;