Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Reuse the underlying cURL handle by default. #52

Merged
merged 1 commit into from
Jun 12, 2011
Merged

Reuse the underlying cURL handle by default. #52

merged 1 commit into from
Jun 12, 2011

Conversation

nrk
Copy link
Member

@nrk nrk commented Jun 11, 2011

The most relevant benefit of reusing cURL handles is in that cURL can reuse already opened connections to perform different HTTP requests when issued against the same web server.

Relying on the old behaviour (a new cURL handle for each request) is still possible by doing:

<?php
$curlDriver = new Orient\Http\Client\Curl();
$curlDriver->reuseHandle(false);

Aside from a slightly lower overhead on the PHP side, reusing the same
handle enables cURL to reuse a connection to perform different HTTP
requests against the same web server (which is definitely our case).
odino added a commit that referenced this pull request Jun 12, 2011
Reuse the underlying cURL handle by default.
@odino odino merged commit de0c529 into doctrine:master Jun 12, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants