core-lightning/connectd
William Casarin f72a08c802 websocketd: fix random failures by blocking stdin reads
Example request that is dying:

NEW REQUEST! lightning_websocketd:main [1955685] <-- bad request from safari

   read 507
   write_all 1
-> websocket_to_lightningd
-> read_payload_header
   read 2
   read_all 1
   read -11      <--- This tried to read a part of the header, is this -EAGAIN?
   read_all 0         should we be blocking on these reads?
   *dies*

Fixes #5089

Changelog-Fixed: `experimental-websocket` intermittent read errors fixed
Signed-off-by: William Casarin <jb55@jb55.com>
2022-03-14 12:26:46 -05:00
..
test test: connectd netaddress 2022-03-11 16:42:45 +10:30
connectd_gossipd_wire.csv gossipd: don't hand out fds. 2022-02-08 11:15:52 +10:30
connectd_wire.csv chore: fix typo announcable -> announceable 2022-03-11 16:42:45 +10:30
connectd.c wireaddr: adds wireaddr_eq_without_port and wireaddr_cmp_type 2022-03-11 16:42:45 +10:30
connectd.h connectd: use listen_fd array directly, rather than returning binding arr. 2022-03-05 15:48:03 +10:30
handshake.c connectd: keep timeout timer around so we can disable it. 2022-01-20 15:24:06 +10:30
handshake.h connectd: keep timeout timer around so we can disable it. 2022-01-20 15:24:06 +10:30
Makefile connectd: handle onion messages. 2022-02-08 11:15:52 +10:30
multiplex.c connectd: handle custom messages. 2022-02-08 11:15:52 +10:30
multiplex.h misc: clarifications from cdecker review. 2022-02-08 11:15:52 +10:30
netaddress.c bolt7: allow announcement of ADDR_TYPE_DNS 2021-11-30 09:38:17 +10:30
netaddress.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
onion_message.c connectd: do io logging properly for msgs we make. 2022-02-08 11:15:52 +10:30
onion_message.h connectd: handle onion messages. 2022-02-08 11:15:52 +10:30
peer_exchange_initmsg.c chore: remove EXPERIMENTAL for rfc #917 remote_addr 2022-03-11 16:42:45 +10:30
peer_exchange_initmsg.h connectd: keep timeout timer around so we can disable it. 2022-01-20 15:24:06 +10:30
sha1.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
sha1.h lightning_websocketd: simple proxy for websockets. 2021-10-22 11:56:30 +02:00
tor_autoservice.c connectd: hoist find_local_address so we can give more graceful Tor erros. 2022-03-05 15:48:03 +10:30
tor_autoservice.h connectd: hoist find_local_address so we can give more graceful Tor erros. 2022-03-05 15:48:03 +10:30
tor.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
tor.h connectd: rename 'struct reaching' to 'struct connecting'. 2018-09-28 04:14:28 +00:00
websocketd.c websocketd: fix random failures by blocking stdin reads 2022-03-14 12:26:46 -05:00