[issue29533] urllib2 works slowly with proxy on windows

2017-04-20 Thread Julia Dolgova
Julia Dolgova added the comment: I'm not sure that users of my program will like if I define such variables in their systems -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29533] urllib2 works slowly with proxy on windows

2017-04-19 Thread Julia Dolgova
Julia Dolgova added the comment: I compared the behaviour of urllib with these browsers: Firefox("use system proxy" selected), Google Chrome, Yandex. And also Skype (requests to login.live.com). All of them are not doing DNS requests for proxy bypass handling as Marc expects.

[issue29533] urllib2 works slowly with proxy on windows

2017-04-06 Thread Julia Dolgova
Julia Dolgova added the comment: Steve, do you mean that there should be no address to IE configuration from urllib? I could undertake it if I understand the task. gethostbyaddr() is ok. It just makes a reverse lookup, that some dns-servers work up too slow. The command "nslookup"

[issue29533] urllib2 works slowly with proxy on windows

2017-03-30 Thread Julia Dolgova
Julia Dolgova added the comment: Ok, but may be there are some Windows users, that have different opinion, who prefer to put up with this bug for the benefit of better performance. Could you leave them an opportunity to refuse this behavior of urllib

[issue29533] urllib2 works slowly with proxy on windows

2017-03-29 Thread Julia Dolgova
Julia Dolgova added the comment: May be I described the problem not clearly enough, because English is not my native language, so I try to explain once again. In Windows there is an option "Do not use proxy server for address beginning with". I call this option . This option i

[issue29533] urllib2 works slowly with proxy on windows

2017-03-25 Thread Julia Dolgova
Julia Dolgova added the comment: Could someone look into my PR, please... -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29533] urllib2 works slowly with proxy on windows

2017-02-22 Thread Julia Dolgova
Changes by Julia Dolgova <zo...@mail.ru>: -- pull_requests: +212 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29533> ___ __

[issue29533] urllib2 works slowly with proxy on windows

2017-02-22 Thread Julia Dolgova
Julia Dolgova added the comment: I added variable smart_proxy_bypass into request module. If it's False then checking IP and FQDN of the host is skipped in proxy_bypass_registry function. I set the default value to False, because I think it's better when the behaviour of urllib corresponds

[issue29533] urllib2 works slowly with proxy on windows

2017-02-19 Thread Julia Dolgova
Julia Dolgova added the comment: http://bugs.python.org/issue23384 - same problem -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29533] urllib2 works slowly with proxy on windows

2017-02-19 Thread Julia Dolgova
Julia Dolgova added the comment: Why not to take it into account? Imagine that someone wants that requests to "ovinnik.canonical.com" should bypass proxy and requests to "ubuntu.com" souldn't. I don't know what for, it's just an assumption. He adds a hostname &q

[issue29533] urllib2 works slowly with proxy on windows

2017-02-18 Thread Julia Dolgova
Julia Dolgova added the comment: I compared the behavior of IE and urllib. I put different addresses to the ("Do not use proxy server for address beginning with" setting), made different requests through IE and urllib and watched if the proxy was bypassed. IE doesn't even make a f

[issue23384] urllib.proxy_bypass_registry slow down under Windows if website has no reverse DNS and Fiddler is runing

2017-02-18 Thread Julia Dolgova
Changes by Julia Dolgova <zo...@mail.ru>: -- nosy: +juliadolgova ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23384> ___ __

[issue29533] urllib2 works slowly with proxy on windows

2017-02-18 Thread Julia Dolgova
Julia Dolgova added the comment: The issue applies to 3.6 as well. I agree that the replacement of gethostbyaddr with gethostbyname_ex is not a solution. But is there a way to check whether a hostname is in the that doesn't bring to the reverse lookup? I suppose that IE doesn't make

[issue29533] urllib2 works slowly with proxy on windows

2017-02-16 Thread Julia Dolgova
Julia Dolgova added the comment: I sincerely appreciate your time. Thank you very much for your answer. I'll try to test this on python 3.5 -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29533] urllib2 works slowly with proxy on windows

2017-02-15 Thread Julia Dolgova
Julia Dolgova added the comment: Surely noone is concerned that programms written on python could work better when addressing to "python.org"? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.py

[issue29533] urllib2 works slowly with proxy on windows

2017-02-11 Thread Julia Dolgova
Changes by Julia Dolgova <zo...@mail.ru>: -- keywords: +patch Added file: http://bugs.python.org/file46632/socket.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue29533] urllib2 works slowly with proxy on windows

2017-02-11 Thread Julia Dolgova
Changes by Julia Dolgova <zo...@mail.ru>: Added file: http://bugs.python.org/file46630/test.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue29533] urllib2 works slowly with proxy on windows

2017-02-11 Thread Julia Dolgova
Changes by Julia Dolgova <zo...@mail.ru>: Added file: http://bugs.python.org/file46631/log.txt ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue29533] urllib2 works slowly with proxy on windows

2017-02-11 Thread Julia Dolgova
Changes by Julia Dolgova <zo...@mail.ru>: Added file: http://bugs.python.org/file46629/socket.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue29533] urllib2 works slowly with proxy on windows

2017-02-11 Thread Julia Dolgova
New submission from Julia Dolgova: I've found that urllib works sometimes slowly on windows with proxy. To reproduce the issue: on Windows: 1. Turn on the option "use proxy" in "browser settings" in "control panel". No real proxy needed. The problem will come

[issue26236] urllib2 initiate irregular call to gethostbyaddr

2016-01-28 Thread Julia Dolgova
New submission from Julia Dolgova: I'm using python 2.7. My system is windows 7(64-bit). I also use proxy. urllib2.urlopen usually implements 0,2..1sec but sometimes sends a strange UDP to 137 port (netbios-ns) of the remote server, waits 4..6 sec. and then sends HTTP-request. If I disable