aboutsummaryrefslogtreecommitdiff
path: root/changelog
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2016-04-08 09:45:49 +0800
committerAndy Green <andy@warmcat.com>2016-04-08 09:45:49 +0800
commitc5376b141ad3755f0a70ffa705b791f0856551b2 (patch)
tree7a69113906c04c61e7c1ff8074e6fc7b749d3789 /changelog
parent150233d61f32c2cf4f682040509bc36b39f6ce56 (diff)
downloadlibwebsockets-c5376b141ad3755f0a70ffa705b791f0856551b2.tar.gz
extensions add api for user code option manipulation
Signed-off-by: Andy Green <andy@warmcat.com>
Diffstat (limited to 'changelog')
-rw-r--r--changelog18
1 files changed, 18 insertions, 0 deletions
diff --git a/changelog b/changelog
index 3142d559..a13eabef 100644
--- a/changelog
+++ b/changelog
@@ -185,6 +185,24 @@ LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS. If you give this, non-ssl
connections to the server listen port are accepted and receive a 301
redirect to / on the same host and port using https://
+8) User code may set per-connection extension options now, using a new api
+"lws_set_extension_option()".
+
+This should be called from the ESTABLISHED callback like this
+
+ lws_set_extension_option(wsi, "permessage-deflate",
+ "rx_buf_size", "12"); /* 1 << 12 */
+
+If the extension is not active (missing or not negotiated for the
+connection, or extensions are disabled on the library) the call is
+just returns -1. Otherwise the connection's extension has its
+named option changed.
+
+The extension may decide to alter or disallow the change, in the
+example above permessage-deflate restricts the size of his rx
+output buffer also considering the protocol's rx_buf_size member.
+
+
New application lwsws
---------------------