Commit c041698a authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_read_data): Return ISC_READ_WOULDBLOCK if the output queue is full.

parent cdd2020c
......@@ -79,6 +79,11 @@ isc_read_data(struct isc_scb *scb,
void *buf;
ssize_t status;
/* Too many queued blocks? Don't read any more data, until
the client has read the output we have already produced. */
if (isc_sizequeue(scb->wr_msg_q) >= scb->cfg->max.queuedsize)
return ISC_READ_WOULDBLOCK;
if (*unused * 2 > s_strlen(*result))
{
if (s_trim_left(result, *unused) != OK)
......
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