该项目从 https://github.com/warmcat/libwebsockets 镜像。
Pull mirroring failed .
由于尝试失败次数过多,仓库镜像已暂停,可以由项目维护者或所有者恢复。
上次成功更新 。
由于尝试失败次数过多,仓库镜像已暂停,可以由项目维护者或所有者恢复。
上次成功更新 。
- 7月 15, 2020
-
-
由 Andy Green 创作于
-
由 Andy Green 创作于
The old esp32 -factory stuff along with the lws support doesn't have a future in its old form. It has users but the ratio of effort to contribution is really especially bad. I haven't updated it for more than a year since esp-idf changes broke the original stuff. Freertos plat is alive and well and getting a lot of new use, ESP-32 is supported both there and by modern lws_drivers pieces, including in CI on real hardware, any further effort will be invested in that direction instead of more vendor api-specific code (outside of wrapper implementation). lws_drivers wraps any SDK apis in generic lws apis such that your code just uses those, enabling it to become SDK / SoC / vendor independent. Its first implementation is on esp-idf, the low and mid-level features that were in the old -factory are already available using that and new technologies like lws_struct and Secure Streams.
-
由 Andy Green 创作于
As far as I know there are no users of this, although it worked it's basically unmaintainable due to handling the sql and JSON manually. Gradually better capabilities have appeared in lws, like lws_struct abstracting out the sql and JSON, and now generic JWT... these have been used in Sai to great effect and displaced the only organic would-be user of this. There is a better path to do this stuff now and no point keeping this around.
-
- 6月 27, 2020
-
-
由 Andy Green 创作于
- Add low level system message distibution framework - Add support for local Secure Streams to participate using _lws_smd streamtype - Add apit test and minimal example - Add SS proxy support for _lws_smd See minimal-secure-streams-smd README.md
-
由 Andy Green 创作于
-
- 6月 11, 2020
-
-
由 Andy Green 创作于
Make a start on generic peripheral and bus drivers to provide meta-functionality regardless of platform. On the one hand this simply provides... - bitbang i2c on top of esp-idf gpio apis - ssd1306 oled chip driver as found on Heltec WB32 - modifications to the minimal example test for esp32 to use that ... on the other hand, those capabilities are provided by creating: - an abstract i2c class object - an abstract gpio class object - i2c class implementation using the abstract gpio for bitbang - an abstract display class object - an abstract display state (brightness, animated change, on/off/init tracking, autodim after inactive, auto-off / blanking after inactive) ... with the intention, eg, you only have to add a platform implementation for the gpio to be able to use the i2c-based display drivers and state handling, and i2c bitbang, without any other modifications.
-
- 6月 07, 2020
-
-
由 Andy Green 创作于
LWS_EXTERN needs to be empty for windows when declaring functions in the headers. But for data, it needs the explicit extern otherwise on windows or mingw based builds, it thinks we are redeclaring the data each time.
-
- 6月 04, 2020
-
-
由 Andy Green 创作于
-
- 6月 03, 2020
-
-
由 Andy Green 创作于
-
- 6月 02, 2020
-
-
由 Andy Green 创作于
Adapt the pt sul owner list to be an array, and define two different lists, one that acts like before and is the default for existing users, and another that has the ability to cooperate with systemwide suspend to restrict the interval spent suspended so that it will wake in time for the earliest thing on this wake-suspend sul list. Clean the api a bit and add lws_sul_cancel() that only needs the sul as the argument. Add a flag for client creation info to indicate that this client connection is important enough that, eg, validity checking it to detect silently dead connections should go on the wake-suspend sul list. That flag is exposed in secure streams policy so it can be added to a streamtype with "swake_validity": true Deprecate out the old vhost timer stuff that predates sul. Add a flag LWS_WITH_DEPRECATED_THINGS in cmake so users can get it back temporarily before it will be removed in a v4.2. Adapt all remaining in-tree users of it to use explicit suls.
-
由 Andy Green 创作于
Add Sai for openssl-v3 and for boringssl
-
由 Andy Green 创作于
-
由 Arenoros 创作于
-
由 Andy Green 创作于
Allow selection of Unix Domain Sockets on windows since it is supported for the last couple of years on windows 10 https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/ ... if only they could add a full set of posix pieces to go with it (and abstract namespace UDS which doesn't work apparently) so that the parts dealing with uid / gid don't have to be disabled.
-
由 Jakov Smolic 创作于
https://github.com/warmcat/libwebsockets/pull/1926 Signed-off-by:
Jakov Smolic <jakov.smolic@sartura.hr>
-
- 5月 27, 2020
-
-
由 Andy Green 创作于
Establish a new distributed CMake architecture with CMake code related to a source directory moving to be in the subdir in its own CMakeLists.txt. In particular, there's now one in ./lib which calls through to ones further down the directory tree like ./lib/plat/xxx, ./lib/roles/xxx etc. This cuts the main CMakelists.txt from 98KB -> 33KB, about a 66% reduction, and it's much easier to maintain sub-CMakeLists.txt that are in the same directory as the sources they manage, and conceal all the details that that level. Child CMakelists.txt become responsible for: - include_directories() definition (this is not supported by CMake directly, it passes it back up via PARENT_SCOPE vars in helper macros) - Addition child CMakeLists.txt inclusion, for example toplevel -> role -> role subdir - Source file addition to the build - Dependent library path resolution... this is now a private thing in the child CMakeLists.txt, it just passes back any adaptations to include_directories() and the LIB_LIST without filling the parent namespace with the details
-
由 Andy Green 创作于
Esp-idf has an improved but still kind of abused cmake- based build system now. If we see ESP_PLATFORM coming as a cmake var, we can know we are being built from inside the esp-idf config system. Leave the existing esp32 arrangements alone but triggered off ESP_PLATFORM, adapt to use the cross toolchain file and various quirks automatically. In this way you can build lws a part of your project in a much cleaner way. Prepare a minimal esp32 test app for use in Sai Adapt .sai.json to build for esp32
-
- 5月 11, 2020
-
-
由 Andy Green 创作于
Replace the bash selftest plumbing with CTest. To use the selftests, build with -DLWS_WITH_MINIMAL_EXAMPLES=1 and `CTEST_OUTPUT_ON_FAILURE=1 make test` or just `make test`. To disable tests that require internet access, also give -DLWS_CTEST_INTERNET_AVAILABLE=0 Remove travis and appveyor scripts on master. Remove travis and appveyor decals on README.md.
-
- 5月 03, 2020
-
-
由 Andy Green 创作于
-
- 4月 25, 2020
-
-
由 Andy Green 创作于
-
- 4月 24, 2020
-
-
由 Andy Green 创作于
Lws now strips out http headers releated to h2, ws and unusual headers based on cmake config settings for those features... it saves some heap for the ah and reduces the table size in .rodata. It's possible code might have some external dependency on the original header indexes, but, eg, you don't enable h2 so those indexes are optimized with the h2 ones taken out. This introduces a cmake option "LWS_HTTP_HEADERS_ALL", default-OFF, that defeats the header table optimization for compatibility with older versions in the case the client software can't be adapted to use the lws-exported matching header enums. You probably don't need this.
-
- 4月 23, 2020
-
-
由 huangkaicheng 创作于
LWS builds OK on iOS SDK as unix type plat, except it doesn't have net/route.h. Detect we're building on iOS at CMake and export a preprocessor define we can use to snip out the missing include.
-
- 4月 22, 2020
-
-
由 Andy Green 创作于
By default this doesn't change any existing logging behaviour at all. But it allows you to define cmake options to force or force-disable the build of individual log levels using new cmake option bitfields LWS_LOGGING_BITFIELD_SET and LWS_LOGGING_BITFIELD_CLEAR. Eg, -DLWS_LOGGING_BITFIELD_SET="(LLL_INFO)" can force INFO log level built even in release mode. -DLWS_LOGGING_BITFIELD_CLEAR="(LLL_NOTICE)" will likewise remove NOTICE logging from the build regardless of DEBUG or RELEASE mode.
-
- 4月 21, 2020
-
-
由 Valentin B 创作于
When libwebsockets is included as a subdirectory in other projects that rely on a minimum CMake version of 3.x, a CMP0048 policy warning will be raised due to the project not specifying a version in the project call. This patch silences the warning by explicitly setting the policy within libwebsockets to NEW if it has already been forwarded as such, without any further impact on the behavior of CMake.
-
由 Andy Green 创作于
On Ubuntu 20.04 Focal, openssl is configured by default to reject the old 1024-bit keys
-
- 4月 16, 2020
-
-
由 Andy Green 创作于
-
- 4月 14, 2020
-
-
由 Andy Green 创作于
Move the unix spawn.c from lib/misc through to lib/plat/unix, and add an implementation for windows in lib/plat/windows
-
由 Andy Green 创作于
Seems otherwise it gets confused on iOS
-
- 4月 11, 2020
-
-
由 Andy Green 创作于
-
- 4月 09, 2020
-
-
由 Andy Green 创作于
This may cause some dust to start with since there are many versions of msvc in use out there.
-
- 4月 08, 2020
-
-
由 Andy Green 创作于
Win32 compatible version of dirent.h microsoft just don't seem to be able to include themselves. MIT license, same as lws, link to original github project in the header
-
- 4月 07, 2020
-
-
由 Andy Green 创作于
Add support for external pthreads lib on windows and some docs about how to do. It can build with LWS_WITH_THREADPOOL and LWS_WITH_MINIMAL_EXAMPLES including the pthreads-dependent ones without warnings or errors on windows platform as well with this. pthreads_t can be anything, including a struct - not a pointer-to-a-struct but the struct itself. These can't be cast to a void * for printing as they can on linux, where the base type is a pointer. Let's fix all the usage of those to determine their own thread index in terms of the meaning to the program rather than as a tid.
-
- 4月 06, 2020
-
-
由 Andy Green 创作于
-
- 3月 29, 2020
-
-
由 Andy Green 创作于
-
- 3月 28, 2020
-
-
由 Andy Green 创作于
Starting with gcc 10 (in fedora 32) there's a new static analyzer built into gcc you can enable with -fanalyzer. It doesn't slow compilation much, but it's a bit hit and miss, it only analyzes each compilation unit standalone so it reports issues that can never happen. Enable it if the option LWS_WITH_FANALYZER is enabled and cmake can see the actual compiler supports it.
-
- 3月 26, 2020
-
-
由 Andy Green 创作于
In some cases devices may be too constrained to handle JSON policies but still want to use SS apis and methodology. This introduces an off-by-default cmake option LWS_WITH_SECURE_STREAMS_STATIC_POLICY_ONLY, if enabled the JSON parsing part is excluded and it's assumed the user code provides its policy as hardcoded policy structs.
-
- 3月 21, 2020
-
-
由 Andy Green 创作于
-
- 3月 20, 2020
-
-
由 Andy Green 创作于
Solve wolfssl wrappers being defines and header path availability for cmake tests
-
- 3月 19, 2020
-
-
由 Andy Green 创作于
-
- 3月 11, 2020
-
-
由 Andy Green 创作于
Implement Captive Portal detection support in lws, with the actual detection happening in platform code hooked up by lws_system_ops_t. Add an implementation using Secure Streams as well, if the policy defines captive_portal_detect streamtype, a SS using that streamtype is used to probe if it's behind a captive portal.
-