mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-23 00:00:06 +01:00
![]() When using http/1.1+ keepalive and mounts, the relationship between a connection and a protocol becomes dynamic. The same connection might visit different bits of the url space served by different mounts using different protocols. This patch ensures protocols can cleanly manage their per-connection allocations by using the following callbacks when the protocol changes LWS_CALLBACK_HTTP_BIND_PROTOCOL LWS_CALLBACK_HTTP_DROP_PROTOCOL For example if the pss wants to malloc stuff at runtime, it should do it in LWS_CALLBACK_HTTP_BIND_PROTOCOL or later, and clean it up in ...DROP_PROTOCOL. Signed-off-by: Andy Green <andy@warmcat.com> |
||
---|---|---|
.. | ||
android | ||
.gitignore | ||
attack.sh | ||
favicon.ico | ||
fuzxy.c | ||
leaf.jpg | ||
libwebsockets-test-server.service | ||
libwebsockets.org-logo.png | ||
lws-cgi-test.sh | ||
test-client.c | ||
test-echo.c | ||
test-fraggle.c | ||
test-ping.c | ||
test-server-dumb-increment.c | ||
test-server-echogen.c | ||
test-server-http.c | ||
test-server-libev.c | ||
test-server-libuv.c | ||
test-server-mirror.c | ||
test-server-pthreads.c | ||
test-server-status.c | ||
test-server-v2.0.c | ||
test-server.c | ||
test-server.h | ||
test.html |