[issue23384] urllib.proxy_bypass_registry slow down under Windows if website has no reverse DNS and Fiddler is runing
Valeriy Osipov
report at bugs.python.org
Tue Feb 3 10:05:39 CET 2015
New submission from Valeriy Osipov:
Environment: OS Windows 8, Fiddler is running
To reproduce the issue launch this code snippet:
import requests
import datetime
import urllib
print datetime.datetime.now()
#print requests.get('http://torgi.gov.ru/lotSearchArchive.html?bidKindId=2')
#print urllib.proxy_bypass_registry('torgi.gov.ru')
print datetime.datetime.now()
This onу GET requests to this wesite takes 6-7 seconds. Now comment the following code from the urllib.py from the proxy_bypass_registry function:
try:
fqdn = socket.getfqdn(rawHost)
if fqdn != rawHost:
host.append(fqdn)
except socket.error:
pass
Now the same GET request takes 2 second. It is normal because this website takes 2 seconds for response.
----------
components: Windows
messages: 235322
nosy: aristotel, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: urllib.proxy_bypass_registry slow down under Windows if website has no reverse DNS and Fiddler is runing
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23384>
_______________________________________
More information about the Python-bugs-list
mailing list