View | Details | Raw Unified | Return to bug 896 | Differences between
and this patch

Collapse All | Expand All

(-)channels.c (+3 lines)
Lines 711-716 channel_pre_open(Channel *c, fd_set * re Link Here
711
{
711
{
712
	u_int limit = compat20 ? c->remote_window : packet_get_maxsize();
712
	u_int limit = compat20 ? c->remote_window : packet_get_maxsize();
713
713
714
	/* buffer at most 32 packets worth of input data */
715
	limit = MIN(limit, (CHAN_SES_PACKET_DEFAULT * 32));
716
714
	if (c->istate == CHAN_INPUT_OPEN &&
717
	if (c->istate == CHAN_INPUT_OPEN &&
715
	    limit > 0 &&
718
	    limit > 0 &&
716
	    buffer_len(&c->input) < limit)
719
	    buffer_len(&c->input) < limit)

Return to bug 896