Commit 91a70aad authored by Niels Möller's avatar Niels Möller

(do_connection_flow_controlled)

(connection_send_kex): Trace output for hard_limit changes.

Rev: src/connection.c:1.83
parent e6c17c12
...@@ -336,6 +336,7 @@ do_connection_flow_controlled(struct flow_controlled *s, ...@@ -336,6 +336,7 @@ do_connection_flow_controlled(struct flow_controlled *s,
if (connection->hard_limit if (connection->hard_limit
&& length + WRITE_BUFFER_MARGIN < connection->soft_limit) && length + WRITE_BUFFER_MARGIN < connection->soft_limit)
{ {
trace("do_connection_flow_controlled: Resetting hard_limit\n");
connection->hard_limit = 0; connection->hard_limit = 0;
if (connection->wakeup) if (connection->wakeup)
COMMAND_RETURN(connection->wakeup, connection); COMMAND_RETURN(connection->wakeup, connection);
...@@ -532,7 +533,10 @@ connection_send_kex(struct ssh_connection *self, ...@@ -532,7 +533,10 @@ connection_send_kex(struct ssh_connection *self,
} }
} }
else if (length > self->soft_limit) else if (length > self->soft_limit)
self->hard_limit = length + WRITE_BUFFER_MARGIN; {
self->hard_limit = length + WRITE_BUFFER_MARGIN;
trace("connection_send_kex: Setting hard limit to %i\n", self->hard_limit);
}
} }
/* Sends one ordinary (non keyexchange) packet */ /* Sends one ordinary (non keyexchange) packet */
......
Markdown is supported
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