mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-25 12:04:47 +00:00
Fix handling of keepalive HTTP requests/responses
Clean the HTTP connection state when ia request/response has been fully buffered and handler invoked. Fixes https://github.com/cesanta/mongoose/issues/971 CL: mg: Fix handling of keepalive HTTP requests/responses PUBLISHED_FROM=70c854aa306aacb9161f6ee48841f38dc0312e6b
This commit is contained in:
1 parent
492b8f6950
commit
05c687e251
3 files changed
+47
-5
No files matched your search
+1
-1
@@ -2069,7 +2069,7 @@ static const char *test_http(void) {
|
||||
nc->user_data = mime2;
|
||||
|
||||
/* Run event loop. Use more cycles to let file download complete. */
|
||||
poll_until(&mgr, 5, c_str_ne, status, (void *) "");
|
||||
poll_until(&mgr, 15, c_str_ne, status, (void *) "");
|
||||
mg_mgr_free(&mgr);
|
||||
|
||||
/* Check that test buffer has been filled by the callback properly. */
|
||||
|
||||
Reference in new issue
Block a user