This commit is contained in:
Sergey Lyubka committed 2025-07-20 12:49:58 +01:00
1 parent 13a9c773f2
commit 24a330c750
4 files changed
+14 -8

No files matched your search

+1 -1
View File
@@ -1125,7 +1125,7 @@ static void mg_hfn_push_data(struct mg_connection *c) {
if (left > 0 && c->send.len < MG_IO_SIZE) {
const char chunk[] = "abcdefghijklmnopqrstubwxyz0123456789\n";
size_t cs = sizeof(chunk) - 1;
while (left > cs && c->send.len < MG_IO_SIZE * 2) {
while (left >= cs && c->send.len < MG_IO_SIZE * 2) {
mg_send(c, chunk, cs);
left -= cs;
}