1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib/roles/http
Andy Green d7ac7f4deb unix domain: fix path name length
Unlike any other sockaddr variant it turns out when sockaddr_un reports its
sizeof() to connect() or listen(), it is trimmed to the used length of the
sun_path[] member not including any trailing 0x00.

Until now we worked fine, but our actual UDS paths have a large number of
trailing 0x00 (shown as @ in most tools).  Clients and servers can still
interoperate if they both have this broken name.

This patch fixes it to trim the sockaddr_un to the path length so the name
is as you would expect.
2020-05-27 08:40:12 +01:00
..
client unix domain: fix path name length 2020-05-27 08:40:12 +01:00
compression cleaning 2020-01-05 22:17:58 +00:00
server ws: remove now unused ws_ping_pong_interval 2020-05-27 08:40:12 +01:00
header.c cleaning 2020-01-05 22:17:58 +00:00
lextable-strings.h http: add cmake option for header reduction defeat 2020-04-23 17:08:57 +01:00
lextable.h http: add cmake option for header reduction defeat 2020-04-23 17:08:57 +01:00
minilex.c http: add cmake option for header reduction defeat 2020-04-23 17:08:57 +01:00
parsers.c fanalyzer: workarounds and fixes 2020-03-27 19:16:06 +00:00
private-lib-roles-http.h client: fix bad state after early tls connection 2020-04-21 21:51:07 +01:00