Simple web proxy - help needed

Chris Liechti cliechti at gmx.net
Sat Jan 31 14:05:43 EST 2004


forshtat at hotmail.com (Ziv Forshtat) wrote in 
news:c335e460.0401310918.49361638 at posting.google.com:

> The problem is that at
> least on my winxp machine all of these servers only seem to work with
> some sites but consistently generate exceptions with others. I keep
> getting "connection reset by peer" and "software caused connection
> abort"...
> Perahps someone has already encountered this problem and solved it??

i have a TCP forwarder program that had similar exceptions.
since i chenged it back from sock.sendall(data) to 
while data:
    	n = sock.send(data)
    	data = data[n:]

it's running stable again. maybe look for sendall's in the sources.

chris

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list