1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/roles/http
Andy Green 3a31c47fcd ws: setting default protocol index to an illegal index disables default ws binding
On lwsws, incoming ws connections to the default vhost
are not rejected by the dummy protocol handler and not
really serviced either, leading to bots connecting to it to
get immortal, idle ws connections with no timeout (since it's an
established ws connection).

Rejecting these connections by default by adding a handler
for ESTABLISHED in the dummy handler will solve it nicely,
but it will break an unknown number of dumb. protocol-less
user implementations that rely on this behaviour by using
break; from their own ESTABLISHED handler and calling
through to the currently NOP dummy handler one.

Add support to assertively disable the default protocol
index used for subprotocol-less ws connections instead.
2019-03-10 08:02:02 +08:00
..
client socks5: fix remain dst buffer length when calls lws_strncpy 2019-03-10 08:02:02 +08:00
compression clean: general whitespace cleanup 2018-11-23 08:47:56 +08:00
server ws: setting default protocol index to an illegal index disables default ws binding 2019-03-10 08:02:02 +08:00
header.c sse: drop the ah when the sse connection starts 2019-01-30 14:38:11 +08:00
lextable-strings.h plat: refactor private headers and split files 2018-06-20 16:41:27 +08:00
lextable.h refactor role ops 2018-04-11 13:39:42 +08:00
minilex.c refactor role ops 2018-04-11 13:39:42 +08:00
private.h http: log ws upgrades 2019-03-10 08:02:02 +08:00