paramiko/paramiko — pull request #120 by tomerfiliba (2012-12-04 21:01:25+00:00)
Title: Make send() and recv() fail when channel is closed

sendall() was checking if the channel has been closed, and failed
accordingly, but send() and recv() did not. This meant that
chan.send("foo") when the channel was already closed, just blocked
forever.