1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
Commit graph

3811 commits

Author SHA1 Message Date
Andy Green
d18e1db72c license: fix two old headers from pre-MIT change
These two headers managed to avoid the global switch from
LGPL2.1 -> MIT back in the day, correct them to be aligned
with the rest of lws' own license, ie, MIT.
2021-05-04 18:35:59 +01:00
Andy Green
7dde828fd2 LICENSE: copy secondary license texts into LICENSE as a convenience 2021-05-04 18:35:50 +01:00
Andy Green
39e89328b0 logs: prioritize WITH_NO_LOGS even in release
Really not having any logs makes it difficult to know what is really
happening, but if that's you're thing this will align debug and release
modes to just have ERR and USER if you give WITH_NO_LOGS
2021-03-16 08:20:03 +00:00
Andy Green
e47915c420 sai: update platform names of windows builders 2021-03-02 06:55:38 +00:00
Andreas Weigel
9f517068b8 lws_struct: fix implicit schema recognition
actually use the index to iterate through the map of children to
not only match the first ever occurring entry
2021-03-01 19:55:15 +00:00
Andy Green
0cdfd750ef dbus: support adding disabled watchers
Dbus may add a watcher in a disabled state, don't action it if so
on the lws event loop.  It'll re-add if it wants it, confusingly.
2021-01-24 14:31:51 +00:00
Andy Green
d8c56ceb69 vhost_destroy: refactor 2021-01-22 16:22:25 +00:00
Jed Lu
c05ee8f4ae ss: http: make sure we dont duplicate leading path slash if already present 2021-01-22 16:21:32 +00:00
Andy Green
f850223cad v4.1.7 2021-01-12 21:08:47 +00:00
Andy Green
48ea2b96e5 LE-root-cert-update
warmcat.com and libwebsockets.org use Let's Encrypt certificates... LE
have changed their CA signing arrangements and after 2021-01-12 (the
point I renewed the LE server certs and received one signed using the
new arrangements) it's required to trust new root certs for the examples
to connect to warmcat.com and libwebsockets.org.

https://letsencrypt.org/2020/09/17/new-root-and-intermediates.html

This updates the in-tree CA copies, the remote policies on warmcat.com
have also been updated.

Just goes to show for real client infrastructure, you need to run your own
CA (that doesn't have to be trusted by anything outside the clients)
where you can control the CA lifetime.
2021-01-12 21:04:32 +00:00
Andy Green
382d918302 esp32: update build arrangements 2020-12-24 14:21:41 +00:00
Rogonov Stepan
2775f9275e cmake: move LWS__INCLUDE_DIRS def to after REL_INCLIDE_DIR def
Generate the config file for the installation tree
fix wrong LWS__INCLUDE_DIRS definition
2020-12-24 13:50:19 +00:00
Andy Green
736f0739ed v4.1.6 2020-12-01 17:40:26 +00:00
Andy Green
3e3a725a6b zip-fops: uncompressed length fix 2020-12-01 16:40:36 +00:00
Andy Green
20592ce83d zip-fops: example: add concompressed mount too 2020-12-01 13:45:32 +00:00
Andy Green
bebf0ef023 zip-fops: example: correct zipfile serving path 2020-12-01 13:45:31 +00:00
Andy Green
b329ea89fe h2: fix ignoring unknown frame payloads 2020-12-01 13:45:27 +00:00
Andy Green
d1cbe7aa27 async-dns: fix error path 2020-11-30 12:53:30 +00:00
Andy Green
1594eb5c50 libuv: context creation fails via destroy
When using a foreign libuv loop, context creation may fail after adding
handles to the foreign loop... if so, it can no longer deal with the
fatal error by unpicking the created context and returning NULL... it
has to brazen it out with a half-baked context that has already started
the destroy flow and allow the foreign loop to close out the handles
the usual way for libuv.

https://github.com/warmcat/libwebsockets/issues/2129
2020-11-28 06:09:13 +00:00
Yichen Gu
3e69956357 sspc: double free + rx ret not checked
Change-Id: I81b67cbb28591a20842fc7d6e09b78375845aae4
2020-11-25 14:32:47 +00:00
Andy Green
d369a38fb1 logging: reduce serving logs 2020-11-25 07:42:09 +00:00
Andy Green
8e9495068e h2: ignore unknown frame types a bit earlier
Chrome has started being able to issue frame type 0x42, we drop the connection
before we realize we wanted to ignore it.

This explicitly ignores it a bit earlier.
2020-11-24 17:04:07 +00:00
Yucong Sun
43f94f4a8e mingw: libevent build fixes 2020-11-23 20:23:26 +00:00
Andy Green
a1335d672b osx: work around some big sur machines getting MAX_LONG ulimit -n 2020-11-17 16:02:54 +00:00
Michael Johanssen
be4c034e02 cmake: windows: update FindOpenSSLbins.cmake 2020-11-15 20:42:31 +00:00
Yichen Gu
fc3c705c90 sspc: lws_sspc_handle_t pointer in wsi used after free 2020-11-12 19:55:10 +00:00
gaoshan
ce1bb10988 cmake: support iOS armv7 build 2020-11-09 04:57:40 +00:00
Yichen Gu
8e876be816 ss: h2: ACK/NACK missing in H2 state flow 2020-11-02 12:17:05 +00:00
Pino Toscano
f6868a5e03 context: properly check for sys/resource.h
Instead of hardcoding where sys/resource.h is available, check for it
using cmake.
2020-11-01 12:16:21 +00:00
Andy Green
544dc90aa0 sai: win10 no pthreads and debian buster 32-bit 2020-10-29 19:55:24 +00:00
Andy Green
0e6c578ab1 lwsws: add -n to allow skipping lws plugins dir 2020-10-29 19:54:36 +00:00
Andy Green
109677df61 ss: policy: cast uint32 lwsl_err arg to unsigned int
Some toolchains typedef uint32_t to unsigned long
2020-10-29 19:53:57 +00:00
Andy Green
427b925d19 ss: fix without server 2020-10-29 19:53:41 +00:00
Andy Green
82783aefcc v4.1.4 2020-10-26 11:31:31 +00:00
Andy Green
df0055ad0d plugins: more explicit header inclusion
32-bit Debian doesn't have these included by other includes
already and needs them explicitly.
2020-10-26 11:30:51 +00:00
Andy Green
2eab1e3ea5 sai: plugins 2020-10-26 11:30:41 +00:00
Andy Green
f50003b7b5 sai: debian 2020-10-26 10:31:34 +00:00
bbqz007
02f8c01fed libevent: fix typo in signal handler
https://github.com/warmcat/libwebsockets/issues/2095
2020-10-17 12:55:46 +01:00
krismattheus
513b6834ca cmake: add windows version resources to library
Signed-off-by: krismattheus <kris.mattheus@visionbms.com>
2020-10-17 12:29:57 +01:00
Andy Green
ce1e4550c2 ss: update client state lifecycle with destroy api note 2020-10-15 10:48:28 +01:00
Mykola Stryebkov
dbc3acd5eb minimal: smp + foreign: libuv foreign loops
AG: various fixes and adaptation of test protocol to use ring lock
to protect global wsi list against modifications from other threads
while in use
2020-10-11 13:09:14 +01:00
Andy Green
4f0545cc54 smp: additional locking for libuv
With SMP + event lib, extra locking is required when dealing with cross-thread
adoption case, and cross-vhost cases like wsi close, we need to hold the pt or
context lock.

These lock apis are NOPs when LWS_MAX_SMP == 1 which is the default.
2020-10-11 13:04:52 +01:00
Andy Green
c7c2db871d smp: lws_wsi_tsi
This lets you find out the SMP Thread Service Index (tsi) that a wsi
is bound to.  This allows you to, eg, filter a global wsi list so
you can find the ones that exist in your service thread context.
2020-10-11 13:04:29 +01:00
Andy Green
398a2cd46c smp: set tsi in fakewsi used with WAIT_CANCELLED
Together with the new lws_wsi_tsi(wsi) this lets the WAIT_CANCELLED
callback understand its tsi context, the broadcasts are done for each
pt / loop.
2020-10-11 13:04:06 +01:00
Andy Green
9df59987ae evlib: export LWS_MAX_SMP locking for evlib plugin case with SMP
Now we're also looking at SMP + event lib, SMP locking pieces are
going to be needed for import into the event lib plugins if built
as plugins.
2020-10-11 13:03:55 +01:00
casey
c50100cb46 fix zombie sul detection
The cmake define isn't exported, and msvc objects to void * comparision to
non void *.

Also dump the callback pointer with any errors, since after looking it up
in your mapfile this is usually enough to understand which sul and when it
was set.
2020-10-10 06:48:24 +01:00
Andy Green
03a8fff42a close: ensure any pending sul_connect_timeout cancelled 2020-10-09 21:33:13 +01:00
Andy Green
9b94c53431 plugins: use new export symbol convention 2020-10-09 21:32:59 +01:00
Andy Green
524e680c8b cgi: support evlib_wsi in stdwsi 2020-10-09 21:32:47 +01:00
Andy Green
aacfe77ad7 ws: reporting PONG with pmd enabled
Add a return code NOTHING_WE_SHOULD_DO indicating that the
extension determined by ext-specific means its operation was
disabled on this frame.

https://github.com/warmcat/libwebsockets/issues/2076
2020-10-09 06:59:43 +01:00