New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HttpSocket does not support connection keep-alive #1961
Comments
Link above is broken, should be this: |
After some debugging and research I think this is a limitation of the used function Anyway, I couldn't get it to work, even when I made the connection persistent. Then i tried it outside of CakePHP with the bare minimum:
It fails at Hope this link is still valid to show the result of the script above: @markstory I guess this is no issue anymore after the recent HttpSocket rewrite, right? |
It might still be an issue as the new Http\Client still uses PHP streams under the hood. I've not looked at whether or not they support keep alives though. |
Have a look at |
@tersmitten true. The truth must be somewhere around here, if not where the connection is established: |
Closing all enhancement requests that were not actioned in a long time. If you still think this a good idea and would like to help making this happen, please leave a comment. |
Created by Christophe Vandeplas, 4th May 2012. (originally Lighthouse ticket #2854):
What I did
What happened
Only one connection was performed.
What I expected to happen
The same socket/connection is reused.
Code example
This only prints one $response.
The subsequent $response are empty:
It seems that someone else had the same problem/feature-request in 2009: http://www.mail-archive.com/tickets-cakephp`@googlegroups`.com/msg01754.html
Thanks
The text was updated successfully, but these errors were encountered: