progrium/pydoozer — pull request #9 by beaufour (2012-05-22 20:54:17+00:00)
Title: On .reconnect() retransmit packets that were in transit

When the connection is lost any packets in flight are lost and the client will get a timeout in getting a response. This patch retransmits all pending packets to the new endpoint after a reconnect.

It really depends on the reconnect fixes in https://github.com/progrium/pydoozer/pull/8, but since it might be a bit more "controversial" I've done a separate pull request.