lnd/lntest
Oliver Gugger 4b7452a35e
lnrpc+itest: fix write deadline issue with WS ping
Fixes #5680.
To make sure we're always reading from the WebSocket connection, we need
to always have an ongoing (but blocking) conn.ReadMessage() call going
on. To achieve this, we do the read in a separate goroutine and write to
a buffered channel. That way we can always read the next message while
the current one is being forwarded. This allows incoming ping messages
to be received and processed which then leads to the deadlines to be
extended correctly.
2021-09-20 12:21:03 +02:00
..
channels lntest/channels: introduce subpackage to deduplicate static structs 2021-01-25 14:04:39 -05:00
itest lnrpc+itest: fix write deadline issue with WS ping 2021-09-20 12:21:03 +02:00
mock lntest/mock: set input index on spend event 2021-05-12 12:32:28 +02:00
wait itest: remove extra graph topology subscription 2021-09-17 07:50:42 +08:00
bitcoind_common.go itest: basic failover itest when using leader election on etcd 2021-05-04 17:33:12 +02:00
bitcoind_notxindex.go lntest: add build flag for disabling txindex on bitcoind 2020-10-09 13:35:04 +02:00
bitcoind.go lntest: add build flag for disabling txindex on bitcoind 2020-10-09 13:35:04 +02:00
btcd.go itest: include compressed btcd backend logs 2021-08-24 02:00:44 +02:00
doc.go lntest: Add doc.go with package documentation. 2017-12-14 20:06:23 -08:00
fee_service_test.go chainfee: change min conf target to be 1 2021-06-29 20:25:46 +08:00
fee_service.go itest: change feeServiceTarget to be 1 2021-06-29 20:25:47 +08:00
harness.go itest: put node.CloseChannel inside wait 2021-09-17 07:50:44 +08:00
neutrino.go lntest: decrease broadcast timeout for neutrino-backed integration tests 2021-04-29 13:56:19 -07:00
node.go itest: watch channel policy updates in harness node 2021-09-17 07:50:43 +08:00
timeouts_darwin.go itest: require server being started when creating node 2021-09-14 07:34:10 +08:00
timeouts_etcd.go itest: require server being started when creating node 2021-09-14 07:34:10 +08:00
timeouts.go itest: require server being started when creating node 2021-09-14 07:34:10 +08:00