version 1.22, 1999/11/19 19:18:20 |
version 1.23, 1999/11/19 19:58:18 |
|
|
|
|
case SSH_CHANNEL_OPEN: |
case SSH_CHANNEL_OPEN: |
if(compat13){ |
if(compat13){ |
if (buffer_len(&ch->input) < 32768) |
if (buffer_len(&ch->input) < packet_get_maxsize()) |
FD_SET(ch->sock, readset); |
FD_SET(ch->sock, readset); |
if (buffer_len(&ch->output) > 0) |
if (buffer_len(&ch->output) > 0) |
FD_SET(ch->sock, writeset); |
FD_SET(ch->sock, writeset); |
|
|
} |
} |
/* test whether sockets are 'alive' for read/write */ |
/* test whether sockets are 'alive' for read/write */ |
if (ch->istate == CHAN_INPUT_OPEN) |
if (ch->istate == CHAN_INPUT_OPEN) |
if (buffer_len(&ch->input) < 32768) |
if (buffer_len(&ch->input) < packet_get_maxsize()) |
FD_SET(ch->sock, readset); |
FD_SET(ch->sock, readset); |
if (ch->ostate == CHAN_OUTPUT_OPEN || ch->ostate == CHAN_OUTPUT_WAIT_DRAIN){ |
if (ch->ostate == CHAN_OUTPUT_OPEN || ch->ostate == CHAN_OUTPUT_WAIT_DRAIN){ |
if (buffer_len(&ch->output) > 0){ |
if (buffer_len(&ch->output) > 0){ |
|
|
case SSH_CHANNEL_AUTH_SOCKET: |
case SSH_CHANNEL_AUTH_SOCKET: |
continue; |
continue; |
case SSH_CHANNEL_OPEN: |
case SSH_CHANNEL_OPEN: |
if (buffer_len(&ch->input) > 32768) |
if (buffer_len(&ch->input) > packet_get_maxsize()) |
return 0; |
return 0; |
if (buffer_len(&ch->output) > 32768) |
if (buffer_len(&ch->output) > packet_get_maxsize()) |
return 0; |
return 0; |
continue; |
continue; |
case SSH_CHANNEL_INPUT_DRAINING: |
case SSH_CHANNEL_INPUT_DRAINING: |