Skip to content

Commit 0634ccf

Browse files
committed
fix MAX_REQUEST_SIZE bug
1 parent ed16b14 commit 0634ccf

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

chap07/web_server.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ int main() {
311311

312312
if (MAX_REQUEST_SIZE == client->received) {
313313
send_400(client);
314+
client = next;
314315
continue;
315316
}
316317

chap07/web_server2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ int main() {
317317

318318
if (MAX_REQUEST_SIZE == client->received) {
319319
send_400(&client_list, client);
320+
client = next;
320321
continue;
321322
}
322323

chap10/https_server.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ int main() {
351351

352352
if (MAX_REQUEST_SIZE == client->received) {
353353
send_400(client);
354+
client = next;
354355
continue;
355356
}
356357

0 commit comments

Comments
 (0)