1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/lib/roles/ws
Andy Green 6710279e21 client: use block parse and buflist
With http, the protocol doesn't indicate where the headers end and the
next transaction or body begin.  Until now, we handled that for client
header response parsing by reading from the tls buffer bytewise.

This modernizes the code to read in up to 256-byte chunks and parse
the chunks in one hit (the parse API is already set up for doing this
elsewhere).

Now we have a generic input buflist, adapt the parser loop to go through
that and arrange that any leftovers are placed on there.
2019-09-22 03:08:36 -07:00
..
ext private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
client-parser-ws.c private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
client-ws.c ws role: cannot assume sentinel, use vhost count 2019-09-22 03:08:36 -07:00
ops-ws.c client: use block parse and buflist 2019-09-22 03:08:36 -07:00
private-lib-roles-ws.h private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
server-ws.c fixes: various small fixes 2019-09-22 03:08:36 -07:00