pika/pika — pull request #407 by qfan (2013-10-16 19:56:08+00:00)
Title: fix for issue 391 and issue 307

Fix Issue307: heartbeat.py had a fix to add the stop() method but it is not called by tornado or select connection. Added to base_connection close.

Fix issue391: avoid sending the error None to _handl_error, assume disconnected when writing returns a read error.