mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-23 00:00:06 +01:00
![]() 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. |
||
---|---|---|
.. | ||
abstract | ||
core | ||
core-net | ||
drivers | ||
event-libs | ||
jose | ||
misc | ||
plat | ||
roles | ||
secure-streams | ||
system | ||
tls | ||
CMakeLists.txt | ||
README.md |
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 |