Skip to content
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

Connection: keep-alive [feature request] #14

Open
tak3r opened this issue Feb 23, 2016 · 2 comments
Open

Connection: keep-alive [feature request] #14

tak3r opened this issue Feb 23, 2016 · 2 comments
Labels

Comments

@tak3r
Copy link

tak3r commented Feb 23, 2016

Will http persistent connection feature be implemented in the near future? Thanks.

@trowski
Copy link
Contributor

trowski commented Feb 24, 2016

The HTTP server already handles keep-alive requests.

If your looking at the HTTP client, keep alive requests can made but the connection to the server has to be established manually (I recommend using Icicle\Socket\connect() or Icicle\Dns\connect()). You can then pass the Socket object resolved from these coroutines to Icicle\Http\Client\Requester::request() to make HTTP requests over the connection. Let me know if you run into any problems with this method.

@tak3r
Copy link
Author

tak3r commented Feb 24, 2016

Hi, thanks for the reply, yes I'm after the HTTP Client keep alive request, I will try your suggestion first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants