lightning/connectd
Rusty Russell e27dee0fc4 connectd: fix nagle disabling logic.
Our CORK logic was wrong, and it's better to use Nagle anyway:
we disable Nagle just before sending timing-critical messages.

Time for 100 (failed) payments:

Before:
	148.8573575

After:
	10.7356977

Note this revealed a timing problem in test_reject_invalid_payload: we would
miss the cause of the sendonion failure, and waitsendpay would be called
*after* it had failed, so simply returns "Payment failure reason unknown".

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: Protocol: Removed 200ms latency from sending commit/revoke messages.
2025-05-08 14:01:38 +09:30
..
test common: don't send trace messages by default, don't ratelimit at all. 2024-12-16 09:48:51 +10:30
connectd_gossipd_wire.csv gossipd: don't hand out fds. 2022-02-08 11:15:52 +10:30
connectd_wire.csv connectd: remove DNS seed lookups. 2025-05-08 12:54:09 +09:30
connectd.c connectd: remove DNS seed lookups. 2025-05-08 12:54:09 +09:30
connectd.h connectd: remove DNS seed lookups. 2025-05-08 12:54:09 +09:30
gossip_rcvd_filter.c BOLTs: import spec additions for option_simple_close. 2025-03-18 14:30:58 +10:30
gossip_rcvd_filter.h channeld: take over gossip_rcvd_filter.c and is_msg_gossip_broadcast. 2022-06-17 14:14:02 +09:30
gossip_store.c BOLTs: import spec additions for option_simple_close. 2025-03-18 14:30:58 +10:30
gossip_store.h gossipd: remove spam handling. 2024-02-04 09:24:44 +10:30
handshake.c common/utils: macros to help get copy/compare across different types right. 2024-07-23 09:54:47 +09:30
handshake.h connectd: don't try to set TCP_CORK on websocket pipe. 2023-04-10 09:41:56 +09:30
Makefile connectd: do response to gossip queries, don't hand them to gossipd. 2024-07-10 12:21:19 +09:30
multiplex.c connectd: fix nagle disabling logic. 2025-05-08 14:01:38 +09:30
multiplex.h connectd: separate routine to inject message without closing connection. 2024-01-31 14:47:33 +10:30
netaddress.c common: remove websocket type from wireaddr. 2023-06-01 09:28:39 +09:30
netaddress.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
onion_message.c BOLT12: remove -offers from bolt12 quotes, update them. 2025-02-11 20:19:01 -06:00
onion_message.h lightningd: add routine to directly inject an onion message. 2024-07-10 13:34:00 +02:00
peer_exchange_initmsg.c connectd: attach input filtering for incoming dev_disconnect. 2025-01-27 11:07:04 +10:30
peer_exchange_initmsg.h connectd: don't try to set TCP_CORK on websocket pipe. 2023-04-10 09:41:56 +09:30
queries.c gossmap: include cltv_expiry_delta in gossmap_chan_get_update_details for completeness. 2024-10-15 09:58:04 +10:30
queries.h connectd: tie gossip query responses into ratelimiting code. 2024-07-10 12:21:19 +09: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 common/wireaddr.h: simplify parse_wireaddr API. 2023-06-01 09:28:39 +09:30
tor_autoservice.h connectd: remove enable-autotor-v2-mode option 2022-05-18 10:15:36 +09: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 connectd: pass correct buflen to memmem 2023-04-27 07:41:06 +09:30