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:
8d5793b
)
distinguish error from truncation
author
Christian Wyss
<christian.wyss@gfk.com>
Tue, 10 Dec 2013 13:34:30 +0000
(21:34 +0800)
committer
Andy Green
<andy.green@linaro.org>
Tue, 10 Dec 2013 13:34:30 +0000
(21:34 +0800)
Signed-off-by: Christian Wyss <christian.wyss@gfk.com>
test-server/test-server.c
patch
|
blob
|
history
diff --git
a/test-server/test-server.c
b/test-server/test-server.c
index
2cdd67b
..
0a32ba0
100644
(file)
--- a/
test-server/test-server.c
+++ b/
test-server/test-server.c
@@
-592,7
+592,7
@@
callback_lws_mirror(struct libwebsocket_context *context,
LWS_SEND_BUFFER_PRE_PADDING,
ringbuffer[pss->ringbuffer_tail].len,
LWS_WRITE_TEXT);
- if (n <
ringbuffer[pss->ringbuffer_tail].len
) {
+ if (n <
0
) {
lwsl_err("ERROR %d writing to mirror socket\n", n);
return -1;
}