mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
transaction_completed: ignore if parsing not complete
This commit is contained in:
parent
47da96664f
commit
bd23a401f6
1 changed files with 6 additions and 1 deletions
|
@ -1801,7 +1801,12 @@ lws_http_transaction_completed(struct lws *wsi)
|
|||
|
||||
lws_access_log(wsi);
|
||||
|
||||
lwsl_info("%s: wsi %p\n", __func__, wsi);
|
||||
if (!wsi->hdr_parsing_completed) {
|
||||
lwsl_notice("%s: ignoring, ah parsing incomplete\n", __func__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
lwsl_notice("%s: wsi %p\n", __func__, wsi);
|
||||
/* if we can't go back to accept new headers, drop the connection */
|
||||
if (wsi->u.http.connection_type != HTTP_CONNECTION_KEEP_ALIVE) {
|
||||
lwsl_info("%s: %p: close connection\n", __func__, wsi);
|
||||
|
|
Loading…
Add table
Reference in a new issue