Andy Green
e7fbdac391
lws_mux_mark_immortal: remove noisy log
2025-02-25 19:38:02 +00:00
Andy Green
b05e95ec87
pipe: only pt destroy pipe close should close pipe fds
...
https://github.com/warmcat/libwebsockets/issues/2873
2024-09-25 08:38:44 +01:00
payne.ye
bd8f69e438
smp: extend client to work with tsi
...
and take care of zombie sul previously left on connect failure path
2024-04-12 06:25:21 +01:00
Dmitry Potapov
39f6379c0c
vhost: remove from defer binding on destroy
...
If a vhost is removed, it should remove references to it from the
defer binding list to avoid dangling pointers, which can crash the
application.
2022-08-17 08:58:05 +01:00
Jaume
065035ecd5
windows: client connect: use sockaddr size
2022-06-14 07:42:25 +01:00
Andrii Sevastianov
6d8a798742
validity: fix bad pointer access
...
We cannot access wsi after __lws_close_free_wsi.
2022-05-17 15:53:53 +01:00
Andy Green
9e658fa996
threadpool: improve relationship with LWS_HAVE_PTHREAD_H
...
Make it clear in more places that threadpool is only built if pthreads
available.
https://github.com/warmcat/libwebsockets/issues/2607
2022-05-17 15:37:16 +01:00
wayneonway
ec81f538be
netlink: route handling checks for SRC when it means DST
...
https://github.com/warmcat/libwebsockets/issues/2603
2022-05-17 15:37:16 +01:00
Felipe Gasper
a7f2e29881
client: connect report actual socket error to user callback rather than EINPROGRESS
...
https://github.com/warmcat/libwebsockets/pull/2452
2022-05-17 15:37:15 +01:00
apcui
e5d73be53d
windows: avoid NULL addr on connect check
...
https://github.com/warmcat/libwebsockets/issues/2596
2022-05-17 15:34:30 +01:00
Andy Green
02f7e06776
sul: add clear advice for zombie suls
2022-05-17 15:34:30 +01:00
Andy Green
058f97e687
netlink: always delete route if it exists
...
https://github.com/warmcat/libwebsockets/issues/2567
2022-05-17 15:07:19 +01:00
wayneonway
4fb9a535db
route: extend lws_route_uidx_t from 1 byte to 2 bytes
2022-02-21 11:08:21 +00:00
Andy Green
fcde566fc6
cgi: gracefully handle missing wsi->http.cgi
2022-02-21 11:08:19 +00:00
Sylvain Saunier
bb759fd983
route: fix nl groups and local ipv6 ads
2022-02-03 10:20:16 +00:00
Andy Green
939a512413
mbedtls: improve api detection
...
mbedtls cmake api detection was not able to work on esp-idf well.
Improve diagnostics and reaction if we ever see that again.
2022-02-01 14:09:19 +00:00
Andy Green
91f0b3bc0f
sort-dns: fix scope comparison
...
https://github.com/warmcat/libwebsockets/issues/2537
2022-01-16 13:32:51 +00:00
Andy Green
10a34fc43b
coverity fixes
2022-01-16 13:32:09 +00:00
Andy Green
0d9acf7a31
http: redirect: keep ssl options at redirect
2022-01-04 16:00:07 +00:00
Paul Lee
141ebf373c
service: make sure to sleep if nothing to do
...
https://github.com/warmcat/libwebsockets/issues/2524
2021-12-14 08:10:48 +00:00
Andy Green
91da9e30c7
cancel pipe: mark close when wsi is close
2021-12-14 08:09:25 +00:00
Daniel
c295f8014a
extpoll: make sure DEL_POLL_FD only coming once
...
https://github.com/warmcat/libwebsockets/issues/2500
2021-11-22 15:44:23 +00:00
Yichen Gu
cab34801ea
wsimux: immortal: only process immortality once per stream
...
We can call mark immortal multiple times for a child stream, make sure it
is only processed (and increments the nwsi refcount) the once.
2021-11-09 09:28:26 +00:00
Andy Green
f8a21fec22
adopt: coverity: move vh deref until after pointless check
2021-11-09 09:27:41 +00:00
Andy Green
11ba0b713b
adopt: coverity: add pointless vh NULL check
...
The wsi is always created on a valid vhost. Add a needless NULL check on
it to satisfy coverity.
2021-11-08 11:05:28 +00:00
Andy Green
39380ffbac
client: connect: confirm we have a protocol
...
Coverity gets antsy that we were checking wsi->a.protocol for NULL earlier
then start using it... explicitly bail if it's NULL before we start using
it.
2021-11-08 11:05:28 +00:00
Andy Green
c42c2adba9
retry: handle empty retry table
2021-11-08 10:33:12 +00:00
Jin Wang
b43f90a8ed
ss: policy: adaptations for dynamic policy
2021-10-21 16:14:02 +01:00
Andy Green
d77a6c397e
client: connect_check fail just log once
2021-10-19 07:29:13 +01:00
Andy Green
acb05eb1ca
bind: use vhost log ctx since wsi optional
2021-10-16 05:33:41 +01:00
Felipe Gasper
826b221e38
client: fix nxdomain CCE
2021-10-15 14:15:12 +01:00
Andy Green
d447f8f1db
client: connect: prefer default vh if none given
...
Giving NULL vh for the client connection is basically "don't care"....
prefer the "default" vh in that case
2021-10-05 07:40:17 +01:00
Andy Green
ee15b82b6e
cmake: unbreak LWS_WITH_SYS_STATE disabled build
2021-10-05 07:40:17 +01:00
Andy Green
19ba1998fa
tls: evolve handshake serialization into simultaneous_ssl_handshake_restriction
...
This patch adapts the recent change about serializing the number of
simultaneous tls handshakes allowed to 1, so you can set the number in the
context creation info, and the accounting for it is handled by counters
same as the overally tls restriction.
The name of the context info var to control it changes to simultaneous_ssl_handshake_restriction
which is now a count, the default 0 means no limit.
The count rejects tls connection attempts when the tls borrow is attempted,
and separately hands back the hs borrow from the tls borrow when the
connection attempt fails or succeeds.
2021-10-05 07:40:17 +01:00
Andy Green
0fda90c40a
ws-server-threads-smp: modernize
2021-10-05 07:40:03 +01:00
Yucong Sun
ed8865e2b2
asyncdns: provide correct length with CCE
2021-10-05 07:10:10 +01:00
Andy Green
919981fba6
netlink: fix empty route index discovery
2021-10-05 07:10:02 +01:00
Andy Green
d069098683
conmon: async-dns: off-by-one
2021-10-05 07:09:55 +01:00
Andy Green
c38567960a
dsh: remove foreign support
...
We're going to refactor dsh to not have foreign support, let's remove it in
one step.
2021-10-04 12:59:27 +01:00
Andy Green
005e130393
h2: make has_buffered_out check nwsi
2021-09-13 15:15:31 +01:00
Andy Green
0c94138fd3
tls: handle WANT_WRITE via POLLOUT to POLLIN
2021-09-02 16:43:18 +01:00
Andy Green
4d81fee54f
validity: take context and pt lock before close
2021-08-31 05:45:40 +01:00
Andy Green
6ab149b5d3
evlib: remove PREPARE_DELETION as cruft
2021-08-21 17:44:34 +01:00
Andy Green
770dc7bc85
client: connections: add detailed dynamic CCE info
...
Let's improve the details returned in CLIENT_CONNECTION_ERROR in string so
we can get more clues about the problem. Create dynamic strings that
classify at what step the error happened, and add dynamic info like the
errno.
2021-08-19 05:31:15 +01:00
Andy Green
5b8a597c1d
server: http-proxy: fix POST
2021-08-19 05:31:15 +01:00
Andy Green
37f3244076
conmon: add dns and protocol_specific
...
This adds an indication of dns disposition to the conmon results,
and for http, if it gets that far a protocol-specific indication
of http response code.
2021-08-19 05:31:04 +01:00
Andy Green
f3d5b9b99a
service: assert on thread shenanigans
2021-08-13 05:25:01 +01:00
Andy Green
5ddb03d146
iface: score binds
...
Choose the best fit for iface ip addresses by scoring the
unsorted results from getifaddrs()
2021-07-20 10:33:56 +01:00
Andy Green
215ec1daa8
remove LWS_WITH_DEPRECATED_THINGS
2021-07-13 13:22:46 +01:00
Andy Green
c8176085df
vhost: listen: protect listen port transfer between
...
...vhosts from vh destroy on zero refcount
https://github.com/warmcat/libwebsockets/issues/2343
2021-07-13 08:27:22 +01:00