On 19/07/2006, at 2:18 AM, David E Freitas wrote:

> Hi,
>
> Python 2.4
> PyMSNt 0.11
> Twisted 1.3
>
> 'Connection reset by peer'
>
> This happens a lot, but works more or less OK.
> Is it really our network that is so bad?
> MSN doesn't throttle a single IP does it?
>
>
> [2006-07-18 15:55:35] Traceback (most recent call last):
>         File "/usr/local/lib/python2.4/site-packages/twisted/python/ 
> log.py",
> line 65, in callWithLogger
>           callWithContext({"system": lp}, func, *args, **kw)
>         File "/usr/local/lib/python2.4/site-packages/twisted/python/ 
> log.py",
> line 52, in callWithContext
>           return context.call({ILogContext: newCtx}, func, *args, **kw)
>         File "/usr/local/lib/python2.4/site-packages/twisted/python/ 
> context.py",
> line 43, in callWithContext
>           return func(*args,**kw)
>         File "/usr/local/lib/python2.4/site-packages/twisted/internet/ 
> kqreactor.py",
> line 183, in _doWriteOrRead
>           why = selectable.doRead()
>       --- <exception caught here> ---
>         File "/usr/local/lib/python2.4/site-packages/twisted/internet/ 
> tcp.py",
> line 98, in doRead
>           return Connection.doRead(self)
>         File "/usr/local/lib/python2.4/site-packages/twisted/internet/ 
> tcp.py",
> line 239, in doRead
>           data = self.socket.recv(self.bufferSize)
>       OpenSSL.SSL.SysCallError: (54, 'Connection reset by peer')
>
>
>
> Cheers,
>
> David

Never been able to figure the cause of that one. This is you getting  
your connections dropped on authentication with the passport servers.  
Its possible that Microsoft has setup their WWW servers to only allow  
so many HTTPS connections from a particular IP.
But like you said, it doesn't seem to be much of an issue because it  
just gets tried again.

The other possibility is that its a Twisted 1.3 bug :)
Does anybody using Twisted 2.0+ see this?

---

James

Reply via email to