Re: Re: [RFC] [DISCUSSION] pecl_http

From: Date: Mon, 09 Feb 2015 13:52:20 +0000
Subject: Re: Re: [RFC] [DISCUSSION] pecl_http
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-82282@lists.php.net to get a copy of this message
On 08/02/15 23:25, Stanislav Malyshev wrote: >> Youself said that HTTP is a stateless protocol, so how would a >> connection in an "unclean state" look like in your opinion? > > Connection and protocol are different things. In connection, you could > be in the middle of the protocol - i.e. sending headers, sending body, > receiving headers, receiving body - and these are different states. > >> Curl caches connections the servers are fine with keeping alive, and I >> cache curl handles grouped by the id you pass to the client constructor >> and the authority of the url, that's all, nothing spooky. > > Caching connections within the same request and reusing them is not > spooky, but caching them long term, across requests, across security > domains, for extended time - is spooky. > Everything you said also applies to database connections; there are even database services that work over HTTP. I'm still having a fairly hard time groking the issue at hand, sorry. -- Regards, Mike

« previous php.internals (#82282) next »