1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib
Andy Green 936e1c71ce sspc: client: call CREATING on linkup to proxy
Before this we simply proxy the CREATING state from the proxy
version of the stream to the client version of the stream.

However this can result in disordering of onward connection
attempt request happening before the client has called back its
CREATING (*state()), meaning that any metadata set in the
state handler is missed for the onward connection.

This patch suppresses the CREATING forwarded from the proxy
and instead does its own local CREATING state callback at the
time the proxy indicates that the remote stream creation
(ie, with the requested policy streamtype) succeeded.

This then guarantees that the client has seen CREATING, and
had a chance to set metadata there, before the onward connection
request goes out.  Since metadata has higher priority at the
writeable than the onward connection request it also means
any metadata set in client CREATING gets sync'd to the proxy
before the onward connection.
2020-09-04 12:59:34 +01:00
..
abstract cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
core freertos: fixes for build on atmel xdk 2020-09-03 12:49:54 +01:00
core-net freertos: fixes for build on atmel xdk 2020-09-03 12:49:54 +01:00
drivers lws_netdev: fix rssi averaging 2020-07-21 08:16:01 +01:00
event-libs evlib-plugins: set MACOS_RPATH 2020-09-03 07:42:35 +01:00
jose lws_jwt_token_sanity 2020-07-15 16:18:00 +01:00
misc lws_plugins 2020-08-31 16:51:37 +01:00
plat freertos: fixes for build on atmel xdk 2020-09-03 12:49:54 +01:00
roles ss: improve callback return consistency 2020-08-31 16:51:37 +01:00
secure-streams sspc: client: call CREATING on linkup to proxy 2020-09-04 12:59:34 +01:00
system coverity: COV294450 and COV294451 2020-07-27 11:16:49 +01:00
tls freertos: fixes for build on atmel xdk 2020-09-03 12:49:54 +01:00
CMakeLists.txt cmake: plugins: make sure about dl 2020-08-31 16:51:37 +01:00
README.md cleaning 2020-01-05 22:17:58 +00:00

Library sources layout

Code that goes in the libwebsockets library itself lives down ./lib

Path Sources
lib/core Core lws code related to generic fd and wsi servicing and management
lib/core-net Core lws code that applies only if networking enabled
lib/event-libs Code containing optional event-lib specific adaptations
lib/jose JOSE / JWS / JWK / JWE implementations
lib/misc Code for various mostly optional miscellaneous features
lib/plat Platform-specific adaptation code
lib/roles Code for specific optional wsi roles, eg, http/1, h2, ws, raw, etc
lib/system Code for system-level features, eg, dhcpclient
lib/tls Code supporting the various TLS libraries