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

(gateway_make_connection): Use

connection_init_io, so that flow control is set up properly.

Rev: src/gateway_commands.c:1.23
parent 501d5efc
......@@ -204,20 +204,21 @@ gateway_make_connection(struct listen_value *lv,
lv->peer, lv->local, "gateway",
make_exc_finish_read_handler(lv->fd, e, HANDLER_CONTEXT));
/* Instead of calling connection_init_io. */
connection->raw =
&io_read_write(lv->fd,
make_buffered_read(
BUF_SIZE,
make_read_gateway(
make_packet_debug(&connection->super,
ssh_format("%lz received", connection->debug_comment)),
connection)),
connection_init_io
(connection,
io_read_write(lv->fd,
make_buffered_read
(BUF_SIZE,
make_read_gateway
(make_packet_debug(&connection->super,
ssh_format("%lz received",
connection->debug_comment)),
connection)),
BLOCK_SIZE,
make_connection_close_handler(connection))->write_buffer->super;
make_connection_close_handler(connection)));
connection->write_packet
= make_packet_debug(make_gateway_pad(connection->raw),
= make_packet_debug(make_gateway_pad(&connection->socket->write_buffer->super),
ssh_format("%lz sent", connection->debug_comment));
init_connection_service(connection);
......
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