Http11Connection should check for 'connection' header equals 'close'
The Http11Connection assumes keepalive (we add it as a header), but the server could response with Connection: close
.
The impact is we might need to retry the next send
operation, but it shouldn't have other side effects in the system.
Proposal
Check for this header value and mark connection to be closed.
Tasks:
-
Update code -
Create a test to validate
Edited by Michael Eddington