Skip to content

[Http] Adding an AsyncPlugin#62

Merged
mtdowling merged 1 commit intomasterfrom
non_blocking
May 28, 2012
Merged

[Http] Adding an AsyncPlugin#62
mtdowling merged 1 commit intomasterfrom
non_blocking

Conversation

@mtdowling
Copy link
Copy Markdown
Member

When all of the data that should be uploaded is sent, the plugin I created sets a 1ms timeout on the request transfer and tells curl not to download the body of the response. An X-Guzzle-Async header is added to the response of the request when it completes or times out. If the connection to the server is extremely fast and completes in <1ms, then the request will actually receive a response from the server, but curl doesn't download the response body due to the addition of a CURLOPT_NOBODY option in the progress function.

mtdowling added a commit that referenced this pull request May 28, 2012
[Http] Adding an AsyncPlugin
@mtdowling mtdowling merged commit 492ec72 into master May 28, 2012
@akkumar akkumar mentioned this pull request Jan 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant