1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib/core-net
Andy Green 1d954d52a3 sequencer: add second aux message arg
Since the messages are queued and then read in order from the event loop
thread, it's not generally safe to pass pointers to argument structs,
since there's no guarantee the lifetime of the thing sending the message
lasted until the sequencer read the message.

This puts pressure on the single void * argument-passed-as-value... this patch
adds a second void * argument-passed-as-value so it's more possible to put
what's needed directly in the argument.

It's also possible to alloc the argument on the heap and have the sequencer
callback free it after it has read it.
2019-08-08 09:45:09 +01:00
..
adopt.c esp32: use strerror instead of gai_strerror 2019-07-02 08:54:29 +01:00
client.c ipv6: support [ipv6]:port in client proxy 2019-03-10 08:02:02 +08:00
close.c COVA10141: explicitly check there is a protocol set 2019-08-08 09:45:09 +01:00
connect.c lws_sequencer_t: allow wsi binding 2019-07-22 14:02:00 -07:00
dummy-callback.c COVA10299: check lws_change_pollfd 2019-07-13 13:39:50 -07:00
network.c lws_retry_bo_t: generic retry backoff 2019-08-05 14:47:51 +01:00
output.c COVA10827: make lws_issue_raw safe for NULL wsi vhost 2019-07-16 10:02:37 -07:00
pollfd.c lws_lookup: fix wsi table when unrelated_to_ulimit 2019-08-01 18:31:11 +01:00
private.h sequencer: cleanup on pt takedown 2019-08-08 09:45:09 +01:00
sequencer.c sequencer: add second aux message arg 2019-08-08 09:45:09 +01:00
server.c glibc: if malloc_trim() exists, call it periodically 2019-03-16 08:10:47 +08:00
service.c COVA10299: check lws_change_pollfd 2019-07-13 13:39:50 -07:00
stats.c LWS_WITH_NETWORK: cmake option for no network code 2019-01-13 07:54:57 +08:00
vhost.c vhost: lws_get_vhost_by_name 2019-07-30 06:02:23 +01:00
wsi-timeout.c hrtimer: remove from correct dll before resetting 2019-03-21 13:41:36 +08:00
wsi.c COVA10063: check malloc return 2019-07-13 13:28:54 -07:00