Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
make function afb_context_set return a status
[src/app-framework-binder.git]
/
src
/
afb-ws.c
diff --git
a/src/afb-ws.c
b/src/afb-ws.c
index
5af2434
..
b157a49
100644
(file)
--- a/
src/afb-ws.c
+++ b/
src/afb-ws.c
@@
-379,7
+379,7
@@
static void aws_on_readable(struct afb_ws *ws)
int rc;
assert(ws->ws != NULL);
int rc;
assert(ws->ws != NULL);
- rc = websock_dispatch(ws->ws);
+ rc = websock_dispatch(ws->ws
, 0
);
if (rc < 0 && errno == EPIPE)
afb_ws_hangup(ws);
}
if (rc < 0 && errno == EPIPE)
afb_ws_hangup(ws);
}
@@
-407,7
+407,7
@@
static int aws_read(struct afb_ws *ws, size_t size)
return 0;
pfd.fd = ws->fd;
pfd.events = POLLIN;
return 0;
pfd.fd = ws->fd;
pfd.events = POLLIN;
- poll(&pfd, 1, 10);
+ poll(&pfd, 1, 10);
/* TODO: make fully asynchronous websockets */
} else {
ws->buffer.size += (size_t)sz;
size -= (size_t)sz;
} else {
ws->buffer.size += (size_t)sz;
size -= (size_t)sz;
@@
-498,7
+498,7
@@
static void aws_on_binary(struct afb_ws *ws, int last, size_t size)
}
/*
}
/*
- * Callback when 'c
los
e' command received from 'ws' with 'code' and 'size'.
+ * Callback when 'c
ontinu
e' command received from 'ws' with 'code' and 'size'.
*/
static void aws_on_continue(struct afb_ws *ws, int last, size_t size)
{
*/
static void aws_on_continue(struct afb_ws *ws, int last, size_t size)
{