1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib
shinny-chengzhi 5740356d9a Fix I/O hang after received a large deflate frame
When a large deflate frame been received, WSAEnumNetworkEvents will indicate the socket is ready to read. And because the frame is compressed, it may not be consumed entirely(not all bytes ready to receive have been received), since WSAEnumNetworkEvents is edge triggered, and the socket read buffer never been drained, WSAEnumNetworkEvents will never indicate the socket is ready to read again. What here need is level trigger behavior, thus add additional recv with empty buffer to reset edge status.
2018-07-11 15:14:01 +08:00
..
core logging: stderr: reduce brightness of some ANSI loglevels 2018-06-30 09:54:22 +08:00
event-libs cgi: fix for https git server 2018-06-16 09:35:07 +08:00
misc lws_mutex_refcount 2018-06-27 07:15:39 +08:00
plat Fix I/O hang after received a large deflate frame 2018-07-11 15:14:01 +08:00
roles Fixes the binding error when SMP in tandem with a Unix domain socket 2018-07-08 20:53:49 +08:00
tls openssl: Fix compile with 1.1.0 - deprecated APIs 2018-06-30 09:42:44 +08:00
libwebsockets.h libwebsockets.h: include new libuv header 2018-06-24 10:56:59 +08:00
README.md refactor: core code in lib/core and private-libwebsockets.h to core/private.h 2018-05-03 10:49:36 +08: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/event-libs Code containing optional event-lib specific adaptations
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/tls Code supporting the various TLS libraries
libwebsockets.h Public API header for the whole of lws