majek/puka — Issue #10: Catch connection errors
Author: majek
Created: 2012-02-10 11:24:58+00:00
State: open

This looks quite bad:

```
Traceback (most recent call last):
File "./stress_amqp.py", line 104, in
main()
File "./stress_amqp.py", line 96, in main
client.loop(timeout=1.0)
File "../puka/connection.py", line 247, in loop
self.on_read()
File "../puka/connection.py", line 67, in on_read
r = self.sd.recv(131072)
socket.error: [Errno 104] Connection reset by peer
```