Fix a long-standing bug in protocol 2 operation. The client will top sending
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 15 Jan 2004 12:03:00 +0000 (12:03 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 15 Jan 2004 12:03:00 +0000 (12:03 +0000)
commit5aff5d3d75c06986bd6470103641447c76b4347d
treeb4b2c20d1b379bd8b0f17aa13edbe74bc74c0a3b
parentea2f0f094c6001b11b2b7b97c71ba045257e036b
Fix a long-standing bug in protocol 2 operation.  The client will top sending
window updates to the server if and output channel fails.  Output channels
often fail when pipes fail or the filesystem becomes full.  If the server has
a great deal more data to send it will exhaust its window and stall
indefinitely.

This reproduces the problem:

limit filesize 64k
ssh remotebox -n cat /usr/share/dict/words | cat > junkfile
crypto/openssh/channels.c