mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-24 11:54:49 +00:00
Nits
This commit is contained in:
1 parent
13a9c773f2
commit
24a330c750
4 files changed
+14
-8
No files matched your search
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user