HttpConnection should be replaced in ConnManager when Response contains "Connection: Closed"
alexw91 opened this issue · comments
Don't vend a HttpConnection to new Request that has had a "Connection: Closed" Header in either request or response.
The HttpConnection should be replaced with a new HttpConnection in ConnManager when a HttpRequest or HttpResponse contains "Connection: Closed" Header.
The aws_http_connection
needs support the "Connection: close" header as described in RFC 7230.
Once that's in, the connection will be closed upon completion of the response. The aws_http_connection_manager
shouldn't need any changes. It will detect that the connection has closed and acquire a new one to replace it.
Close support should now be working per 0d8d673