socks5 icon indicating copy to clipboard operation
socks5 copied to clipboard

Proxy hangs if domain is used

Open merlink01 opened this issue 6 years ago • 2 comments

Example: resp = requests.get('https://github.com', proxies=dict(http='socks5://username:[email protected]:9011', https='socks5://username:[email protected]:9011'))

Error: ConnectionRefusedError: [WinError 10061] HTTP: same Error: http://apache.org/img/uima.jpg

or use Firefox with the option: Use Socks5 for DNS

Any Idea for the reason?

merlink01 avatar Oct 22 '19 19:10 merlink01

It looks like this problem is specific to WIndows. The script works on my LInux and MacOS machines.

I don't have a Windows machine to debug this. This problem can be caused by a firewall or any other anti-virus software, so please double check your environment.

rushter avatar Nov 17 '19 14:11 rushter

Hi, I'm experiencing the same problem if using socks5 with chrome or firefoxy with proxy DNS option on Ubuntu 18.04 Here is the message Traceback (most recent call last): File "/usr/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "server.py", line 53, in handle domain_length = ord(self.connection.recv(1)[0]) TypeError: ord() expected string of length 1, but int found Would you please take a look? Thanks

weirdobeardo48 avatar Oct 21 '20 04:10 weirdobeardo48