ecdavis / pants

A lightweight framework for writing asynchronous network applications in Python.
http://pantspowered.org/
Apache License 2.0
167 stars 9 forks source link

Resolve error over-reaction. #11

Closed ecdavis closed 13 years ago

ecdavis commented 13 years ago

Pants' default reaction to an error on a channel is to close the channel. This is not necessary in all cases, and contributes to a sharp decline in performance at high scale.

ecdavis commented 13 years ago

_safely_call() no longer closes the channel if an exception is raised in user code. Furthermore, _handle_read_event() now properly handles None return values from _socket_recv() and _socket_recv() catches ECONNRESET.