phpseclib/phpseclib — pull request #538 by terrafrost (2014-12-06 04:30:57+00:00)
Title: SSH2: simplify _send_channel_packet

The last _send_channel_packet was unnecessarily complex. This led to a number of problems. For example,

The window size was checked for adjustments in two places. In the second place it receives a window adjustment packet and just assumes that the window adjustment packet was big enough for the rest of the
data.

(thanks, pixall!)