#6060: Http_socket does not handle persistent connections properly
-----------------------------------------------------------+----------------
    Reporter:  tcossairt                                   |         Owner:     
      
        Type:  Enhancement                                 |        Status:  
new      
    Priority:  Medium                                      |     Milestone:  
1.2.x.x  
   Component:  General                                     |       Version:  
1.2 Final
    Severity:  Major                                       |    Resolution:     
      
    Keywords:  http socket http_socket keep alive timeout  |   Php_version:  
PHP 5    
Cake_version:                                              |  
-----------------------------------------------------------+----------------
Comment (by tcossairt):

 Sure.  I have a cake server that is basically using HttpSocket to get data
 restfully from our backend services, which then formats that data to a
 view friendly XML for our RIA Flex app.

 Some of these RIA calls end up in several calls to the same backend
 service before our code combines the data and outputs one nice XML to the
 RIA.  (Sort of a facade pattern.)  It would be beneficial to have a
 persistent connection in that case (which is the default for HTTP 1.1) so
 that we would not be reopening a connection to the same server for each of
 the calls.

 Looking again, I now see that Cake is defaulting the header to
 Connection/Close, so this really is a performance enhancement like you
 said (although some code comments or an exception thrown regarding setting
 the header to keep-alive would be great :-)

-- 
Ticket URL: <https://trac.cakephp.org/ticket/6060#comment:2>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to