Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Moving away from libwebsockets

(also e-mailing directly because of broken DMARC handling on the mailing list)

----- Original Message -----
> From: "Roger Light" <roger@xxxxxxxxxx>
> To: "mosquitto-dev eclipse" <mosquitto-dev@xxxxxxxxxxx>
> Sent: Monday, 1 February, 2021 00:38:00
> Subject: [mosquitto-dev] Moving away from libwebsockets

> Dear all,
> We've been using libwebsockets (lws) to provide websockets
> functionality in mosquitto for a long while now. I would like to move
> to a different solution, and am writing this to give my reasoning and
> ask for feedback.
> (..snip..)
> I am currently looking at using the picohttpparser and wslay libraries
to provide websockets support.

Just for brainstorming: do websockets really need much special? How wild is it to split input stream on newlines and wait for the upgrade header and then generate/parse websocket frames? There would have to be some protection, like not allowing more than x bytes before the upgrade and such, but perhaps it's an option? It saves having dependencies.

Back to the top