Req #54022 [Com]: Add support for curl_easy_reset
| From: | mtdowling at gmail dot com | Date: | Fri, 19 Aug 2011 20:17:08 +0000 |
| Subject: | Req #54022 [Com]: Add support for curl_easy_reset | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-162709@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54022&edit=1
ID: 54022
Comment by: mtdowling at gmail dot com
Reported by: mtdowling at gmail dot com
Summary: Add support for curl_easy_reset
Status: Assigned
Type: Feature/Change Request
Package: cURL related
Operating System: Mac OS X
PHP Version: 5.3.5
Assigned To: kalle
Block user comment: N
Private report: N
New Comment:
Any news on this? I submitted a patch and announced it on the mailing list. Please let me know if
you need anything further from me.
Previous Comments:
------------------------------------------------------------------------
[2011-02-15 04:57:36] mtdowling at gmail dot com
Description:
------------
It's difficult to use the same curl handle for multiple requests to the same host and port when
many unknown options could have been applied to the handle after its creation. Many of the
curl_setopt options can be removed from a handle using some careful option setting, but some options
cannot. Adding a curl_easy_reset method to the PHP bindings would allow PHP developers to more
easily implement connection pooling and utilize keep-alive sessions over HTTP/1.1.
curl_easy_reset has been available since version 7.12.1
(http://curl.haxx.se/libcurl/c/curl_easy_reset.html):
Re-initializes all options previously set on a specified CURL handle to the default values. This
puts back the handle to the same state as it was in when it was just created with curl_easy_init(3).
It does not change the following information kept in the handle: live connections, the Session ID
cache, the DNS cache, the cookies and shares.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=54022&edit=1