diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-10-23 14:11:04 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-10-23 14:11:04 +0200 |
commit | 5ef0804c5805faafc88107e591bf4c5f0173d69e (patch) | |
tree | 12403bc1043a5c10b1a8007f3e03f803dd950ca6 /src/websock.h | |
parent | 29cdbe709db6af42775c1abc3499a80ad73159d0 (diff) |
websocket: Tune maximum received length
This commit increase the count of data that
is accepted by default from 65,000 to 1,048,500.
It also offers new functions to tune that value.
Change-Id: Iecf0b8c308e8287582819a8769859c39e46919c2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/websock.h')
-rw-r--r-- | src/websock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/websock.h b/src/websock.h index da44a88b..3be89dfe 100644 --- a/src/websock.h +++ b/src/websock.h @@ -75,3 +75,5 @@ extern int websock_dispatch(struct websock *ws, int loop); extern struct websock *websock_create_v13(const struct websock_itf *itf, void *closure); extern void websock_destroy(struct websock *ws); +extern void websock_set_default_max_length(size_t maxlen); +extern void websock_set_max_length(struct websock *ws, size_t maxlen); |