--- a/src/server/test/io.c Tue Sep 12 18:08:11 2023 +0200 +++ b/src/server/test/io.c Sat Mar 30 12:35:09 2024 +0100 @@ -445,6 +445,7 @@ size_t msglen = strlen(msg); st->max_write = 1; // limit the test stream max write size + io_set_max_writes(1); // only 1 byte of the header is written, 0 bytes of msg ssize_t w = net_write(http, msg, msglen); @@ -493,6 +494,7 @@ // limit first write to 3 to only write the header st->max_write = 3; + io_set_max_writes(1); ssize_t w = net_write(http, msg, msglen); @@ -535,6 +537,7 @@ TestIOStream *st = testutil_iostream(2048, TRUE); IOStream *http = httpstream_new(sn->pool, (IOStream*)st); httpstream_enable_chunked_write(http); + io_set_max_writes(1); UCX_TEST_BEGIN; @@ -595,6 +598,7 @@ TestIOStream *st = testutil_iostream(2048, TRUE); IOStream *http = httpstream_new(sn->pool, (IOStream*)st); httpstream_enable_chunked_write(http); + io_set_max_writes(1); UCX_TEST_BEGIN; @@ -654,6 +658,7 @@ TestIOStream *st = testutil_iostream(2048, TRUE); IOStream *http = httpstream_new(sn->pool, (IOStream*)st); httpstream_enable_chunked_write(http); + io_set_max_writes(1); UCX_TEST_BEGIN; @@ -700,6 +705,7 @@ TestIOStream *st = testutil_iostream(2048, TRUE); IOStream *http = httpstream_new(sn->pool, (IOStream*)st); httpstream_enable_chunked_write(http); + io_set_max_writes(1); UCX_TEST_BEGIN;