projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
47da966
)
transaction_completed: ignore if parsing not complete
author
Andy Green
<andy@warmcat.com>
Wed, 28 Jun 2017 01:58:44 +0000
(09:58 +0800)
committer
Andy Green
<andy@warmcat.com>
Wed, 28 Jun 2017 02:04:57 +0000
(10:04 +0800)
lib/server.c
patch
|
blob
|
history
diff --git
a/lib/server.c
b/lib/server.c
index
93ed568
..
9db2ec2
100644
(file)
--- a/
lib/server.c
+++ b/
lib/server.c
@@
-1801,7
+1801,12
@@
lws_http_transaction_completed(struct lws *wsi)
lws_access_log(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);
/* 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);