Skip to content

Loading…

Zend_HTTP_Client can send a mal-formed GET request that causes PHP to hang for 10 seconds #49

Open
zfbot opened this Issue · 1 comment

1 participant

@zfbot

Jira Information

Original Issue: ZF-12509
Issue Type: Bug
Reporter: Dagan Henderson
Created: 01/17/13
Assignee:
Components: Zend_Http_Client

Description

At least some versions of PHP have a bug that causes scripts to hang for 10 seconds after calling file_get_contents('php://input') for a request with a content-length header value that exceeds the actual content length. (see https://bugs.php.net/bug.php?id=64014) This bug is present in the most current PHP package on Ubuntu 12.04.1 LTS.

Using Zend_Http_Client, if setRawData() called on a request that is not a POST, PUT or DELETE request, a content-length header will be inserted by _prepareHeaders() but the content will not be included in the request, thus triggering a 10 second delay in the server processing the request.

@zfbot

This issue was ported from the ZF2 Jira Issue Tracker at
http://framework.zend.com/issues/browse/ZF-12509

Known GitHub users mentioned in the original message or comment:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.