From 86a46cb1d46d4bbdbb4e41b0e016bce421da4414 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 9 Aug 2018 10:01:30 +0930 Subject: [PATCH] channeld: push TCP output on commitment and revocation messages. These are the really time-critical ones. Signed-off-by: Rusty Russell --- channeld/channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channeld/channel.c b/channeld/channel.c index f8741767b..fe9fe0ecb 100644 --- a/channeld/channel.c +++ b/channeld/channel.c @@ -1033,7 +1033,7 @@ static void send_commit(struct peer *peer) msg = towire_commitment_signed(NULL, &peer->channel_id, &peer->next_commit_sigs->commit_sig, peer->next_commit_sigs->htlc_sigs); - sync_crypto_write(&peer->cs, PEER_FD, take(msg)); + sync_crypto_write_no_delay(&peer->cs, PEER_FD, take(msg)); peer->next_commit_sigs = tal_free(peer->next_commit_sigs); maybe_send_shutdown(peer); @@ -1097,7 +1097,7 @@ static void send_revocation(struct peer *peer) start_commit_timer(peer); } - sync_crypto_write(&peer->cs, PEER_FD, take(msg)); + sync_crypto_write_no_delay(&peer->cs, PEER_FD, take(msg)); } static u8 *got_commitsig_msg(const tal_t *ctx,