mercurial/keepalive.py
changeset 29341 0d83ad967bf8
parent 28883 032c4c2f802a
child 29455 0c741fd6158a
equal deleted inserted replaced
29340:ae92c3eee88e 29341:0d83ad967bf8
   108 # $Id: keepalive.py,v 1.14 2006/04/04 21:00:32 mstenner Exp $
   108 # $Id: keepalive.py,v 1.14 2006/04/04 21:00:32 mstenner Exp $
   109 
   109 
   110 from __future__ import absolute_import, print_function
   110 from __future__ import absolute_import, print_function
   111 
   111 
   112 import errno
   112 import errno
       
   113 import hashlib
   113 import httplib
   114 import httplib
   114 import socket
   115 import socket
   115 import sys
   116 import sys
   116 import thread
   117 import thread
   117 
   118 
   622     hosts = keepalive_handler.open_connections()
   623     hosts = keepalive_handler.open_connections()
   623     print("open connections:", hosts)
   624     print("open connections:", hosts)
   624     keepalive_handler.close_all()
   625     keepalive_handler.close_all()
   625 
   626 
   626 def continuity(url):
   627 def continuity(url):
   627     from . import util
   628     md5 = hashlib.md5
   628     md5 = util.md5
       
   629     format = '%25s: %s'
   629     format = '%25s: %s'
   630 
   630 
   631     # first fetch the file with the normal http handler
   631     # first fetch the file with the normal http handler
   632     opener = urlreq.buildopener()
   632     opener = urlreq.buildopener()
   633     urlreq.installopener(opener)
   633     urlreq.installopener(opener)