##// END OF EJS Templates
keepalive: work around slight deficiency in vcr...
Augie Fackler -
r39685:d6d09425 default
parent child Browse files
Show More
@@ -247,8 +247,10 b' class KeepAliveHandler(object):'
247 except (socket.error, httplib.HTTPException) as err:
247 except (socket.error, httplib.HTTPException) as err:
248 raise urlerr.urlerror(err)
248 raise urlerr.urlerror(err)
249
249
250 # if not a persistent connection, don't try to reuse it
250 # If not a persistent connection, don't try to reuse it. Look
251 if r.will_close:
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 self._cm.remove(h)
254 self._cm.remove(h)
253
255
254 if DEBUG:
256 if DEBUG:
General Comments 0
You need to be logged in to leave comments. Login now