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

3798 commits

Author SHA1 Message Date
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
casey
c2028b53d2 windows: null check wsi before udp check 2020-10-09 06:59:30 +01:00
casey
d945699791 windows: fix WSA event destruction
pt->events became an array
2020-10-09 06:59:20 +01:00
Andy Green
63a47081fb windows: WSA loop fixes 2020-10-09 06:59:08 +01:00
Andy Green
d1c84587bc freertos: have lwip choose the cancel pipe port
Rather than a magic port, let's have lwip pick the port for
the UDP cancel "pipe", so no chance of conflict.
2020-10-09 06:58:59 +01:00
Andy Green
2d4f1045d1 struct_json: adapt api test for 32-bit int on windows 2020-10-09 06:57:52 +01:00
Sylvain Rochet
7848e4cf1d contrib: cross-atmel: build-out FILE_OPS
Fix build failure against Atmel ASF3 SDK that does not provide a file
API conforming to POSIX.

libwebsockets/lib/core/libwebsockets.c: In function 'lws_open':
libwebsockets/lib/core/libwebsockets.c:187:18: error: 'O_CREAT' undeclared (first use in this function)
  if (((__oflag & O_CREAT) == O_CREAT)
                  ^~~~~~~
2020-10-06 20:33:23 +01:00
Andy Green
616d8e97ce h1: explicitly close when post txn completes
https://github.com/warmcat/libwebsockets/issues/2072
2020-10-06 14:31:07 +01:00
Andy Green
2976d4dbe8 cmake: remove fixed -g 2020-09-29 17:06:10 +01:00
Andy Green
1fdc242d98 ss: compiler may complain in release mode due to info 2020-09-29 17:06:10 +01:00
Andy Green
5f4ced47d8 sequencer: disable by default 2020-09-29 17:06:10 +01:00
Andy Green
ca3b94bb7d cmake: bump minimum version
Next release of cmake will choke by default if minimum version < 2.8.12
2020-09-29 17:06:10 +01:00
Andy Green
38b2730ad5 client: awaiting header is only a CCE for ws
In the case http client doesn't get a response and closes, currently
it is confused, it reports it as a CLIENT_CONNECTION_ERROR but then
also a CLOSED_CLIENT_HTTP.

Adapt the logic so we only go that way for ws connection... not getting
the server headers means not reaching ESTABLISHED, which makes it a
CCE not a CLOSE.

Also make sure we never issue a CLOSE type callback if we issued a CCE.
2020-09-29 17:06:10 +01:00
Jed Lu
64232ddc4c sspc: http map proxying fixes 2020-09-22 07:41:00 +01:00