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

(do_read_data_query): Stop reading, if

connection->hard_limit is set, indicating an almost full
write_buffer for the connection.

Rev: src/read_data.c:1.37
parent 2b6466a6
......@@ -63,7 +63,7 @@ do_read_data_query(struct io_consuming_read *s)
/* If a keyexchange is in progress, we should stop reading. We rely
* on channels_after_keyexchange to restart reading. */
* on channels_wakeup to restart reading. */
if (self->channel->connection->send_kex_only)
......@@ -71,6 +71,13 @@ do_read_data_query(struct io_consuming_read *s)
return 0;
if (self->channel->connection->hard_limit)
("read_data: Data arrived, but connection' write_buffer is full.\n");
return 0;
/* There are three numbers that limit the amount of data we can read:
* 1 The current send_window_size.
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