aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2021-12-14service: make sure to sleep if nothing to doPaul Lee
https://github.com/warmcat/libwebsockets/issues/2524
2021-12-14http: proxying: allow for large headersVitaliy Orazov
set the buffer size (rpath) for header processing during proxying equal to the value in max_http_header_data
2021-12-14cancel pipe: mark close when wsi is closeAndy Green
2021-12-02http: cookie_getDerKleinePunk
The loop check shouldn't care about bl any more, since we snipped bl from n already.
2021-11-29 http proxy: support PUT, PATCH and DELETE methodsVitaliy Orazov
2021-11-22windows: mingw file type is int (v2)Andy Green
2021-11-22extpoll: make sure DEL_POLL_FD only coming onceDaniel
https://github.com/warmcat/libwebsockets/issues/2500
2021-11-22ws: client: fail server link if maskedAndy Green
2021-11-22mqtt: always init wildcard and shadowChunho Lee
2021-11-22android: fix extra warnings on android-resolvcalvin2021y
2021-11-22http: remove stray debug logAndy Green
2021-11-18h2: post: do not try to bind origin for filesAndy Green
2021-11-09ss: revert make ss timeout handle underlying wsi goneAndy Green
2021-11-09freertos-service: remove cruftAndy Green
This can't be reached currently, so remove it and simplify the setting of c to the exact equivalent.
2021-11-09windows: mingw file type is intAndy Green
2021-11-09wsimux: immortal: only process immortality once per streamYichen Gu
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-09adopt: coverity: move vh deref until after pointless checkAndy Green
2021-11-08coverity: client_reset: no longer any way to get NULL *pwsiAndy Green
Coverity belatedly noticed that client_reset no longer changes *pwsi
2021-11-08sspc: proxy: coverity: handle unknown metadata nameAndy Green
2021-11-08h2: coverity: check for OOM on dynamic table allocAndy Green
It can fail, we should check it.
2021-11-08ss-deserialize: add pointless h NULL checkAndy Green
h cannot be NULL since it's set by address offset earlier. Help coverity understand that.
2021-11-08adopt: coverity: add pointless vh NULL checkAndy Green
The wsi is always created on a valid vhost. Add a needless NULL check on it to satisfy coverity.
2021-11-08ss-h1: coverity: add needless header NULL checkAndy Green
Coverity does not understand that once we checked that the header has a non-zero length, the associated pointer can never be NULL. Add a pointless check to make it happy.
2021-11-08mbedtls-x509: coverity: remove needless checkAndy Green
ip can't be NULL, it's set to the address of another object.
2021-11-08unix-sockets: NOP for coverityAndy Green
continue here makes no difference than using break, but continue gets us a pointless complaint "statement continue does not have any effect" and break does not.
2021-11-08client: connect: confirm we have a protocolAndy Green
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-08jit-trust: SAN_RFC822_NAME needs other_name union memberAndy Green
->san is a union, in this case we set the type to indicate we use SAN_OTHER_NAME member, but set the unstructured_name union member, that is smaller. This doesn't cause any problem, since the union has space for it. But Coverity noticed, it is wrong, so fix it.
2021-11-08jit-trust: show coverity we handle NULL attribute sourceAndy Green
Coverity doesn't understand that since we already handled akid.keyIdentifier.MBEDTLS_PRIVATE(len) being zero, we don't need to check for akid.keyIdentifier.MBEDTLS_PRIVATE(p) being NULL. So explicitly check it, even though it is a NOP.
2021-11-08jit-trust: clean after failed mbedtls_x509_get_nameAndy Green
mbedtls_x509_get_name() does not clean up properly after itself in the case of OOM on multi-segment name. We have to add extra handling and cleaning.
2021-11-08retry: handle empty retry tableAndy Green
2021-11-02openssl: remove lws_ssl_get_error_string as cruftAndy Green
It's not exported, it seems nothing wants it any more
2021-10-30server: SO_REUSEPORT: enable with LWS_MAX_SMP > 1Ron Frederick
Either explicit option selection, or multiple SMP service threads, should enable SO_REUSEPORT https://github.com/warmcat/libwebsockets/issues/2470
2021-10-28cmake: bring tls include requirement out as PUBLICAndy Green
There's no problem for library build, also with LWS_WITH_MINIMAL_EXAMPLES, but after install at least on OSX, there are problems finding the installed lws include dir (concealed on most platforms by the path being in the default search list for the toolchain), and the references in the lws includes to the tls includes meaning that explicit paths for that must be available at consuming cmakes. This patch enhances the cmake config installed by lws to deal with adding the lws include paths to CMAKE_REQUIRED_INCLUDES and include_directories, so it can be found before the target is introduced. The tls include is passed back up the CMakeLists layers and the lws targets marked with target_include_directories(PUBLIC) with them, so they are understood as needed by consumers. More boilerplate is moved out of the example consuming cmakes. After this, on machines with previous installs of older lws, you may have to clean out the cmake install path, that is usually something like /usr/local/lib/cmake/libwebsockets/* before make installing lws and putting the latest content in there.
2021-10-27mqtt: allow indicating username and password are not on heapChunho Lee
Fix minimal-mqtt-client and minimal-mqtt-client-multi from crashes by allowing indicating username and password are not on heap.
2021-10-26plat: freertos: selectively use old service loopingChunho Lee
2021-10-24raw-file: clear POLLOUT before handlingAndy Green
2021-10-21ss: policy: adaptations for dynamic policyJin Wang
2021-10-19metrics: ss: skip tagging if no ss streamtypenameJin Wang
2021-10-19client: connect_check fail just log onceAndy Green
2021-10-16adns: fix label limit checkAndy Green
2021-10-16logs: unconvert adns wsi deref after potential closeAndy Green
2021-10-16http: sse: check POLLIN during DOING_TRANSACTIONAndy Green
When the client goes away, on some platforms all we get is POLLIN revent stuck on... we have to read it to find out a zero length result and understand it's gone. Add SSE mode's DOING_TRANSACTION to the list of states we will read for.
2021-10-16bind: use vhost log ctx since wsi optionalAndy Green
2021-10-16logs: log context: async_dns: no empty format stringAndy Green
2021-10-15logs: log context: async_dnsFelipe Gasper
Of note: A single use of lwsl_debug() remains because the function in question is documented as a public API, but the passed-in parameter doesn’t offer a path to a logging context.
2021-10-15freertos: no need to freak out if service_adjust_to is 0Andy Green
If lws_s_a_t() is zero, there's a path where n stays -1 from its declaration and we return -1.
2021-10-15client: fix nxdomain CCEFelipe Gasper
2021-10-15logs: migrate more to log contextFelipe Gasper
2021-10-13ss: static policy generator: fix filepath detectionYichen Gu
2021-10-13mqtt: protect printing debug only varsYichen Gu