aboutsummaryrefslogtreecommitdiff
path: root/src/pevent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pevent.c')
-rw-r--r--src/pevent.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pevent.c b/src/pevent.c
index 276fe48..0997009 100644
--- a/src/pevent.c
+++ b/src/pevent.c
@@ -266,6 +266,10 @@ event_forward_connection(event_ctx *ctx, int dest_fd, on_data_cb on_data,
errno = 0;
siz = event_buf_read(read_buf);
saved_errno = errno;
+
+ if (read_buf->buf_used == sizeof(read_buf->buf)) {
+ W2("Buffer bloat for read buffer: %zu\n", read_buf->buf_used);
+ }
} else break;
if (saved_errno == EAGAIN)
break;
@@ -330,6 +334,10 @@ event_forward_connection(event_ctx *ctx, int dest_fd, on_data_cb on_data,
}
break;
}
+
+ if (write_buf.buf_used == sizeof(write_buf.buf)) {
+ W2("Buffer bloat for write buffer: %zu\n", write_buf.buf_used);
+ }
}
if (rc != CON_OK)