rgb-cln/tests
Rusty Russell 719d1384d1 connectd: give connections a chance to drain when lightningd says to disconnect, or peer disconnects.
We want to avoid lost messages in the common cases.

This generalizes our drain code, by giving the subds each 5 seconds to
close themselves, but continue to allow them to send us traffic (if
peer is still connected) and continue to send them traffic.

We continue to send traffic *out* to the peer (if it's still
connected), until all subds are gone.  We still have a 5 second timer
to close the connection to peer.

On reconnects, we don't do this "drain period" on reconnects: we kill
immediately.

We fix up one test which was looking for the "disconnect" message
explicitly.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-07-18 20:50:04 -05:00
..
data inflights: save the whole psbt to the database 2021-05-24 12:17:48 +09:30
fuzz check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
plugins Makefile: use a library archive for CCAN 2022-07-17 08:51:02 +09:30
vectors pytest: Remove onion test vectors containing legacy onions. 2022-03-18 09:20:11 +10:30
benchmark.py pytest: always provide payment_secret when making payments. 2021-07-14 14:38:00 -05:00
conftest.py tests: add marker for v1/v2 channel opens 2021-05-12 11:25:41 +09:30
db.py pytest: don't copy db to query it. 2021-08-26 12:44:02 +09:30
fixtures.py pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30
test_cln_rs.py lightningd: change `msatoshi` args to `amount_msat`. 2022-06-21 06:52:35 +09:30
test_closing.py tests: massively speed up our wait for enormous feerates 2022-07-15 22:16:27 +09:30
test_connection.py connectd: give connections a chance to drain when lightningd says to disconnect, or peer disconnects. 2022-07-18 20:50:04 -05:00
test_db.py wallet/db_sqlite3.c: Support direct replication of SQLITE3 backends. 2021-11-17 12:10:07 +10:30
test_gossip.py options: set DNS port to network default if not specified 2022-07-17 23:26:07 +02:00
test_invoices.py plugin: autoclean fix double free when re-enable, remove xfail mark from test_ 2022-07-16 14:19:05 +09:30
test_misc.py lightningd/connect_control: remove param_tok from connect. 2022-07-15 12:24:00 -05:00
test_onion.py lightningd: remove support for legacy onion format. 2022-03-18 09:20:11 +10:30
test_opening.py connectd: give connections a chance to drain when lightningd says to disconnect, or peer disconnects. 2022-07-18 20:50:04 -05:00
test_pay.py sendpay: allow route to contain both amount_msat and (deprecated) msatoshi. 2022-07-12 12:42:05 -05:00
test_plugin.py decode: support decoding runes. 2022-07-17 08:51:02 +09:30
test_wallet.py pyln-testing: use files for stdout and stderr, not threads. 2022-06-27 17:21:35 +09:30
utils.py bolt: Reflect the zeroconf featurebits in code 2022-07-04 22:14:06 +02:00
valgrind-suppressions.txt pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30