Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add protocol handler flag
PROTOPT_CONN_REUSEto indicate that the protocol allows reusing connections for other tranfers. Add that to all handlers that support it.Create connections with
conn->bits.close = FALSEand remove all theconnkeep()calls in protocol handlers setup/connect implementations.PROTOPT_CONN_REUSEassures that the default behaviour applies at the end of a transfer without need to juggle the close bit.conn->bits.closenow serves as an additional indication that a connection cannot be reused. Only protocol handles that allow reuse need to set it to override the default behaviour.Remove all
connclose()andconnkeep()calls from connection filters. Filters should not modify connection flags. They are supposed to run in eyeballing situations where a filter is just one of many determining the outcome.Fix http response header handling to only honour
Connection: closefor HTTP/1.x versions.