Re: Re: [RFC] [DISCUSSION] pecl_http

From: Date: Thu, 05 Feb 2015 20:46:28 +0000
Subject: Re: Re: [RFC] [DISCUSSION] pecl_http
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-81965@lists.php.net to get a copy of this message
Hi! > Uhm, I'm not sure I understand :-? Weren't I supposed to measure exacly > that? Let me know, if you wanted something else to be compared. I wanted to know why we need persistent resources. You brought comparing persistent resources to reopening connection each time as an argument that we need persistent resources. This, however, is not a good argument for persistent resources, as the same performance improvement (or nearly the same, discounting the closing/opening between requests - which may be necessary anyway, see below) can be achieved without having persistent resources, just by implementing HTTP keepalive within the same connection object. It would also make it clearer who owns the connection and in which state it is, right now I'm not sure what exactly ensures the client can not end up with somebody else's connection in an unclean state. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#81965) next »