# HG changeset patch # User Olaf Wintermann # Date 1651516633 -7200 # Node ID 71b6527438713a7230d5e63025310ea8d301429f # Parent d2b2124801f4b3c05d055dbd08fed7d321625b6b fix netbuf_getbytes not detecting EOF in some cases diff -r d2b2124801f4 -r 71b652743871 src/server/util/netbuf.c --- a/src/server/util/netbuf.c Mon May 02 20:26:54 2022 +0200 +++ b/src/server/util/netbuf.c Mon May 02 20:37:13 2022 +0200 @@ -141,6 +141,8 @@ buf->pos += bytes_in_buffer; return bytes_in_buffer; + } else if(buf->pos >= buf->maxsize) { + return NETBUF_EOF; } }