[issue2905] Long timeout on HG incoming with missing server
Ton
bugs at mercurial.selenic.com
Sat Jul 16 12:14:49 CDT 2011
New submission from Ton <tcplomp at gmail.com>:
When I'm running 'Hg incoming' and the remote server is not available the
command takes 189 seconds to return, I have accompanied a file with the log
of:
hg incoming --time --profile --debug
My setup is the following:
Work-laptop with a mercurial server hardcoded in my hosts file.
When I am working at home the server is not available. Since both networks
use a different IP-range I assume that Mercurial is going to look up the IP-
address (10.192.132.191) on the internet, which fails.
I'm not sure if this is a bug, or a feature request for an extra parameter
(timeout).
----------
files: hgincomingtime.txt
messages: 16861
nosy: tcplomp
priority: bug
status: unread
title: Long timeout on HG incoming with missing server
topic: 1.9, hg
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2905>
____________________________________________________
-------------- next part --------------
d:\work\Common\Libraries\GPSPlot>hg incoming --time --profile --debug
using http://code.dekiwiki/libraries/gpsplot
sending capabilities command
CallCount Recursive Total(ms) Inline(ms) module:lineno(function)
1 0 188.9934 188.9934 <method 'connect' of '_socke
t.socket' objects>
1 0 0.0151 0.0151 <_socket.getaddrinfo>
108 88 0.0294 0.0093 <__import__>
+1 0 0.0005 0.0004 +<mercurial\wireproto.pyo>:8
(<module>)
+1 0 0.0035 0.0003 +<urlparse.pyo>:26(<module>)
+1 0 0.0143 0.0003 +<urllib.pyo>:23(<module>)
+1 0 0.0015 0.0003 +<httplib.pyo>:67(<module>)
+1 0 0.0012 0.0002 +<threading.pyo>:1(<module>)
2 0 0.0064 0.0064 <imp.load_dynamic>
1 0 0.0042 0.0023 <mercurial\url.pyo>:423(open
er)
+1 0 0.0017 0.0001 +<urllib2.pyo>:441(build_ope
ner)
+1 0 0.0001 0.0000 +<mercurial\url.pyo>:57(__in
it__)
+1 0 0.0000 0.0000 +<mercurial\url.pyo>:334(__i
nit__)
+1 0 0.0000 0.0000 +<mercurial\url.pyo>:375(__i
nit__)
+1 0 0.0000 0.0000 +<mercurial\url.pyo>:403(__i
nit__)
2 0 0.0016 0.0012 <collections.pyo>:13(namedtu
ple)
+13 0 0.0001 0.0000 +<all>
+1 0 0.0000 0.0000 +<<string>>:1(<module>)
+4 0 0.0001 0.0000 +<method 'join' of 'str' obj
ects>
+1 0 0.0000 0.0000 +<<string>>:1(<module>)
+2 0 0.0000 0.0000 +<repr>
1 0 0.0011 0.0011 <socket.pyo>:176(_socketobje
ct)
+1 0 0.0000 0.0000 +<<string>>:1(<module>)
+1 0 0.0000 0.0000 +<<string>>:1(<module>)
+1 0 0.0000 0.0000 +<<string>>:1(<module>)
+1 0 0.0000 0.0000 +<<string>>:1(<module>)
+1 0 0.0000 0.0000 +<<string>>:1(<module>)
6 0 0.0013 0.0010 <urllib.pyo>:1193(quote)
+768 0 0.0003 0.0003 +<chr>
+6 0 0.0000 0.0000 +<map>
+3 0 0.0000 0.0000 +<range>
+6 0 0.0000 0.0000 +<method 'join' of 'str' obj
ects>
22 15 0.0029 0.0008 <sre_parse.pyo>:385(_parse)
+369 0 0.0015 0.0005 +<sre_parse.pyo>:207(get)
+12 4 0.0021 0.0001 +<sre_parse.pyo>:307(_parse_
sub)
+68 0 0.0001 0.0001 +<sre_parse.pyo>:144(append)
+82 0 0.0002 0.0001 +<sre_parse.pyo>:201(match)
+36 0 0.0001 0.0001 +<sre_parse.pyo>:136(__getit
em__)
424 0 0.0011 0.0008 <sre_parse.pyo>:188(__next)
+827 0 0.0004 0.0004 +<len>
abort: error: A connection attempt failed because the connected party did not pr
operly respond after a period of time, or established connection failed because
connected host has failed to respond
Time: real 189.061 secs (user 0.016+0.000 sys 0.031+0.000)
d:\work\Common\Libraries\GPSPlot>
More information about the Mercurial-devel
mailing list