core-lightning/connectd
Rusty Russell 1ae3172409 connectd: flush queues before hanging up.
This is critical in the common case where peer sends an error and
hangs up: we almost never get to relay the error to the subd in time.

This also applies in the other direction: we need to flush the queue
to the peer when the subd closes.  Note we only free the actual peer
struct when lightningd reaps us with connectd_peer_disconnected().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-01-20 15:24:06 +10:30
..
test connectd: keep timeout timer around so we can disable it. 2022-01-20 15:24:06 +10:30
connectd_gossipd_wire.csv connectd: get addresses from lightningd, not gossipd. 2022-01-20 15:24:06 +10:30
connectd_wire.csv connectd: get addresses from lightningd, not gossipd. 2022-01-20 15:24:06 +10:30
connectd.c connectd: flush queues before hanging up. 2022-01-20 15:24:06 +10:30
connectd.h connectd: don't just close to peer, but use shutdown(). 2022-01-20 15:24:06 +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: serve gossip_store file for the peer. 2022-01-20 15:24:06 +10:30
multiplex.c connectd: flush queues before hanging up. 2022-01-20 15:24:06 +10:30
multiplex.h connectd: don't just close to peer, but use shutdown(). 2022-01-20 15:24:06 +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
peer_exchange_initmsg.c connectd: drop support (unused) for @ during handshake. 2022-01-20 15:24:06 +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 wireaddr: clean up tor parsing. 2021-11-14 18:49:46 +01:00
tor_autoservice.h wireaddr: clean up tor parsing. 2021-11-14 18:49:46 +01:00
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 lightning_websocketd: simple proxy for websockets. 2021-10-22 11:56:30 +02:00