You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would also be good to have the possibility to pass socket arguments to the HTTPAdapter, for my use case where I needed TCP keep alive, I had to overwrite the HTTPAdapter like this in order to pass socket options:
In the documentation, it stated the TCP Keep Alive are enabled by default when using
requests
, but looking at the code it doesn't seem to be the case.Expected Result
TCP Keep Alive be enable by default.
Actual Result
I could not find anywhere in the code where the TCP Keep Alive are enabled. Maybe I missed something ? In the urllib3 library it seems to me that TCP Keep Alive are not enabled by default, see https://github.com/urllib3/urllib3/blob/5a24dc55d86e4c5ca7fe0bd496da768caf617591/src/urllib3/connection.py#L109.
It would also be good to have the possibility to pass socket arguments to the
HTTPAdapter
, for my use case where I needed TCP keep alive, I had to overwrite theHTTPAdapter
like this in order to pass socket options:But I may have missed something as well ?
The text was updated successfully, but these errors were encountered: