Fix #541 - make sure connection state is properly reset when BlockingConnection._check_state_on_disconnect raises ConnectionClosed. This supplements the previously-merged PR #450 by getting the connection into consistent state.
Fix #541 - make sure connection state is properly reset when BlockingConnection._check_state_on_disconnect raises ConnectionClosed. This supplements the previously-merged PR #450 by getting the connection into consistent state.

Fix #540 - fix handling of Connection.Close in BlockingConnection._on_connection_closed that was preventing ConnectionClosed from being raised.

benjamin9999/pika,hugoxia/pika,jstnlef/pika,zixiliuyue/pika,reddec/pika,skftn/pika,shinji-s/pika,vrtsystems/pika,vitaly-krugl/pika,Zephor5/pika,knowsis/pika,pika/pika,Tarsbot/pika