Skip to content

NettyAsyncHttpProvider issue during setting future.keepAlive()#8

Closed
jevgeni wants to merge 3 commits into
AsyncHttpClient:masterfrom
jevgeni:master
Closed

NettyAsyncHttpProvider issue during setting future.keepAlive()#8
jevgeni wants to merge 3 commits into
AsyncHttpClient:masterfrom
jevgeni:master

Conversation

@jevgeni

@jevgeni jevgeni commented Apr 18, 2011

Copy link
Copy Markdown

Currently, if the AsyncHttpClient is used Netty provider and Suspended REST connection, the Future never returns, even if the handler is returning STATE.ABORT.

@jevgeni

jevgeni commented Apr 18, 2011

Copy link
Copy Markdown
Author

Upgraded from 1.6.2 to 1.6.3 and now the problem is gone. However, it still seems that the setKeepAlive() was set incorrectly. I'll attach the commit to change the README.

@jfarcand

Copy link
Copy Markdown
Contributor

Hi,

thanks for the contribution. I'm not sure about the change requested as it means we don't support keep-alive for chunk encoding or any server that aren't set the connection header. I can potentially make the behavior configurable, but can you explain in more detail your use case?

Thanks!

@jevgeni

jevgeni commented Apr 20, 2011

Copy link
Copy Markdown
Author

Right, I messed with HTTP 1.0 spec. In http 1.1 it is ON by default. Sorry for confusion, please, ingore the first two patches. However, update plz versions and the examples on the README to the latest one.

@jevgeni jevgeni closed this Apr 20, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants