IETF-SSH archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Window size for channels



I'm currently using
http://www.ietf.org/internet-drafts/draft-ietf-secsh-connect-23.txt
to implement an SSH2 server.

I just wanted to confirm that the 'window size' defined per-channel is
only affected by the 'data' field of an SSH_MSG_CHANNEL_DATA channel
packet, and that no other packets have any effect (including the other
fields in the SSH_MSG_CHANNEL_DATA or packet overhead such as padding).

Section 5.2 does say that "The maximum amount of data allowed is the
current window size.  The window size is decremented by the amount of
data sent".  This implies that only the contents of a data packet apply to
window size calculations.

But then in Section 5.3, the SSH_MSG_CHANNEL_CLOSE message says:
"This message does not consume window space and can be sent even if no
 window space is available."

Why say this if no other messages ever consume window space?  It implies
that this message is special with respect to window flow control.  Do
other channel-specific messages do take up window space then?

thanks for any comments,

-- 
Anil Madhavapeddy                                 http://anil.recoil.org
University of Cambridge                          http://www.cl.cam.ac.uk



Home | Main Index | Thread Index | Old Index