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:
0a9bd7e
)
fix missing callback return check
author
Andy Green
<andy.green@linaro.org>
Thu, 25 Feb 2016 12:27:10 +0000
(20:27 +0800)
committer
Andy Green
<andy.green@linaro.org>
Thu, 25 Feb 2016 12:27:10 +0000
(20:27 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/server.c
patch
|
blob
|
history
diff --git
a/lib/server.c
b/lib/server.c
index
4aef8bd
..
2fa682a
100644
(file)
--- a/
lib/server.c
+++ b/
lib/server.c
@@
-306,6
+306,11
@@
lws_http_action(struct lws *wsi)
n = wsi->protocol->callback(wsi, LWS_CALLBACK_HTTP,
wsi->user_space, uri_ptr, uri_len);
+ if (n) {
+ lwsl_info("LWS_CALLBACK_HTTP closing\n");
+
+ return 1;
+ }
/*
* If we're not issuing a file, check for content_length or