majek/puka — pull request #33 by schmir (2012-12-17 09:18:23+00:00)
Title: make on_write handle shutdown connections and an empty buffer

Connection._shutdown sets the sd and send_buf attributes to
None. on_write may be called after _shutdown was called. We return
early now in on_write if send_buf is None or if it is empty.

see issue #23: https://github.com/majek/puka/issues/23