HttpClientSession KeepAlive #3794
micheleselea
started this conversation in
General
Replies: 2 comments
-
I guess the rationale is that write returning -1 is not a connection problem, so trying to reconnect in such case is pointless |
Beta Was this translation helpful? Give feedback.
0 replies
-
Understand, I don't know if -1 was for connection lost or other issue, because is not easy to reproduce that kind of problem, anyway the connection was an https |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found a behavior I did not expect with HTTP keepalive connections. When (for example) a GET connection is triggered (with an HTTPS connection in that use case), if keepalive is true than a _reconnect is set to true so in function:
if something bad happen in write we try to reconnect. But I end up in a HTTPSession::write that returns -1 without trigger the exception so my send fail without a retry. Do you think was the design behavior?
Beta Was this translation helpful? Give feedback.
All reactions