Open peterisr opened 3 years ago
:+1: I ran into this issue as well using vcr with 1.1 http connections, this PR helped me work a fix into my code. Would love to see this hit master so I can remove my patch.
We also carry this as local patch, would be nice to see the issue fixed.
Fix patching of is_connection_dropped from urllib3
With old patching method, urllib3 never detected TCP connections that were closed by the server side. For example, persistent HTTP connection that were closed by the server (e.g., due to timeout) were not recognized as closed. Any following requests that attempted to reuse the same, closed connection caused the following failure:
Fixes: https://github.com/kevin1024/vcrpy/issues/468