[Libwebsockets] Removing pre-v13 protocols + other optimizations

"Andy Green (林安廸)" andy at warmcat.com
Mon Jan 21 06:36:17 CET 2013

Hi -

I committed a patch to remove everything about pre-v13 websocket protocols


If you're using a modern browser, you won't notice anything since it has 
been using v13 for a while.  Everything before that can be regarded as 
deprecated anyway.

Wow a lot of cruft came out.

As documented here


it's now possible to get a v13 websocket + http server from 
libwebsockets in under 12K of (ARM) code using

./configure --without-client --without-extensions --disable-debug 
--enable-nofork --without-daemonize

and another big patch today


unionizes the struct libwebsocket members according to where their usage 
is mutually exclusive.  That halves the per-connection allocation from 
8.7KBytes to 4.4KBytes, it's 9.2KBytes -> 4.8KBytes on x86_64.


More information about the Libwebsockets mailing list