Req #71832 [NEW]: Support for persistent connections

From: Date: Tue, 15 Mar 2016 19:39:07 +0000
Subject: Req #71832 [NEW]: Support for persistent connections
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199848@lists.php.net to get a copy of this message
From:             rmoisto at gmail dot com
Operating system: 
PHP version:      Irrelevant
Package:          cURL related
Bug Type:         Feature/Change Request
Bug description:Support for persistent connections

Description:
------------
There should be a way of persisting and caching cURL http(s) connections
between requests.

Trying to find a solution, it seems the nature of PHP doesn't currently
allow for this in any way, without writing an extension of course. Every
time a request comes in I have to create a new cURL handle and therefore
a new connection at least once.

It's a big performance issue on proxy systems like what I'm working on.
For example even in my very fast local network the time spent
establishing a connection is around 60 ms.

The issue and solution are much better explained in the description of
an extension that only exists for hvvm:
https://github.com/mobfox/hhvm_ext_pcurl


-- 
Edit bug report at https://bugs.php.net/bug.php?id=71832&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=71832&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=71832&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=71832&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=71832&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=71832&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=71832&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=71832&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=71832&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=71832&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=71832&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=71832&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=71832&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=71832&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71832&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=71832&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=71832&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=71832&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71832&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=71832&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=71832&r=mysqlcfg



Thread (9 messages)

« previous php.bugs (#199848) next »