Show More
@@ -247,8 +247,10 b' class KeepAliveHandler(object):' | |||
|
247 | 247 | except (socket.error, httplib.HTTPException) as err: |
|
248 | 248 | raise urlerr.urlerror(err) |
|
249 | 249 | |
|
250 |
# |
|
|
251 | if r.will_close: | |
|
250 | # If not a persistent connection, don't try to reuse it. Look | |
|
251 | # for this using getattr() since vcr doesn't define this | |
|
252 | # attribute, and in that case always close the connection. | |
|
253 | if getattr(r, r'will_close', True): | |
|
252 | 254 | self._cm.remove(h) |
|
253 | 255 | |
|
254 | 256 | if DEBUG: |
General Comments 0
You need to be logged in to leave comments.
Login now