libwebsockets/lib
Andy Green cf8b922df5 client: if NULL protocol vhost same linked list entry
Lws maintains a linked-list of wsi that are on the same vhost protocol...
it walks it to perform ..._all_protocol() type apis.

Client connections also participate in this list, but in the case the
selected protocol is not given during negotation (a legal case where
the server default protocol is selected) we missed adding the new
ws negotiated client wsi to the list.

This patch makes sure we add the wsi to the vhost protocols[0] list
in that case.

https://github.com/warmcat/libwebsockets/issues/716
2016-12-15 08:38:35 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
alloc.c esp8266 initial support 2016-08-10 21:20:23 +08:00
base64-decode.c base64 decode fix lengths 2016-08-10 21:20:23 +08:00
client-handshake.c client: avoid possible NULL deref on error path 2016-12-12 20:38:32 +08:00
client-parser.c ws ping pong on idle connections 2016-08-10 21:20:23 +08:00
client.c client: if NULL protocol vhost same linked list entry 2016-12-15 08:38:35 +08:00
context.c ssl destroy: change ordering of ssl destroy to later than vhost destroy 2016-12-10 09:13:08 +08:00
daemonize.c Revert changes in daemonize.c from commit 22d6f39e7f 2016-06-02 13:00:13 +08:00
extension-permessage-deflate.c replace LWS_MAX_SOCKET_IO_BUF with context creation info pt_serv_buf_size 2016-05-19 12:34:35 +08:00
extension-permessage-deflate.h extension permessage deflate 2016-01-11 11:34:01 +08:00
extension.c documentation convert to doxygen 2016-07-14 08:57:27 +08:00
getifaddrs.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
getifaddrs.h esp8266 initial support 2016-08-10 21:20:23 +08:00
handshake.c cgi-retain-timeout-after-POST-send 2016-08-23 14:20:11 +08:00
header.c per-vhost headers and lwsws conf support 2016-08-27 17:07:06 +08:00
hpack.c http2 update integration 2016-04-13 11:53:40 +08:00
http2.c Subject: Fix some typographical and grammatical errors. 2016-10-03 21:31:27 +08:00
huftable.h http2 hpack basic decode ok including huff 2014-10-12 08:38:16 +08:00
lejp-conf.c lwsws license to cc0 2016-09-19 19:16:47 +08:00
lejp.c documentation convert to doxygen 2016-07-14 08:57:27 +08:00
lejp.h documentation convert to doxygen 2016-07-14 08:57:27 +08:00
lextable-strings.h esp8266 initial support 2016-08-10 21:20:23 +08:00
lextable.h http2 update integration 2016-04-13 11:53:40 +08:00
libev.c plugins 2016-04-07 09:38:08 +08:00
libuv.c port forced service checking from libuv 2016-10-04 08:39:14 +08:00
libwebsockets.c lws_socket_bind: use lws_sockfd_type 2016-11-16 09:00:45 +08:00
libwebsockets.h Better support for MINW32 2016-11-09 08:34:27 +08:00
lws-plat-esp8266.c extpoll: expose forced service apis 2016-10-07 03:19:45 +08:00
lws-plat-mbed3.c documentation convert to doxygen 2016-07-14 08:57:27 +08:00
lws-plat-mbed3.cpp windows detect client connection error 2016-07-14 08:57:27 +08:00
lws-plat-unix.c adjust_timeout: with default lws_plat_service_tsi allow beings passed 0 timeout 2016-10-10 23:21:48 +08:00
lws-plat-win.c adjust_timeout: with default lws_plat_service_tsi allow beings passed 0 timeout 2016-10-10 23:21:48 +08:00
minihuf.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
minilex.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
output.c quench logging 2016-08-22 07:07:10 +08:00
parsers.c lws_header_table_reset: make caller responsibility to clear down ah rx buffer 2016-09-29 10:31:06 +08:00
pollfd.c client fixups after esp8266 2016-08-10 21:23:01 +08:00
private-libwebsockets.h client stash: update path variable to larger size 2016-11-22 09:01:57 +08:00
rewrite.c check oom on lws_malloc 2016-05-12 21:04:33 +08:00
server-handshake.c ws-server: restrict returned Sec-Websocket-Protocol to the chosen name only 2016-12-10 09:13:04 +08:00
server.c generic-sessions: move auth level check to after mount protocol selection 2016-11-26 20:47:34 +08:00
service.c publicly document lws_service_fd timeout servicing 2016-10-07 17:35:12 +08:00
sha-1.c polarssl implementation 2016-04-18 20:05:43 +08:00
smtp.c documentation convert to doxygen 2016-07-14 08:57:27 +08:00
ssl-client.c fix build problem on systems without X509_VERIFY_PARAM type 2016-09-27 05:28:11 +08:00
ssl-http2.c http2 update integration 2016-04-13 11:53:40 +08:00
ssl-server.c openssl allow set clear of ssl options from info 2016-06-10 11:09:27 +08:00
ssl.c Remove the cleanup functions with OpenSSL 1.1. 2016-10-04 08:26:13 +08:00