Commit e9e61b1a authored by Niels Möller's avatar Niels Möller
Browse files

* src/tcpforward.c (tcpip_channel_start_io): Use

make_channel_read_close_callback rather than
make_channel_close_callback. I haven't looked into exception
handling for i/o errors yet.

Rev: src/tcpforward.c:1.31
parent bc5a22d2
......@@ -179,6 +179,9 @@ struct ssh_channel *make_tcpip_channel(struct io_fd *socket, UINT32 max_window)
return &self->super;
}
/* FIXME: Where should we install a proper I/O-error handler, that
* closes the channel? */
void tcpip_channel_start_io(struct ssh_channel *c)
{
CAST(tcpip_channel, channel, c);
......@@ -192,7 +195,7 @@ void tcpip_channel_start_io(struct ssh_channel *c)
make_channel_read_data(&channel->super),
/* FIXME: Make this configurable */
SSH_MAX_PACKET * 10, /* self->block_size, */
make_channel_close_callback(&channel->super));
make_channel_read_close_callback(&channel->super));
/* Start receiving */
channel_start_receive(&channel->super);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment