Commit Graph

1339 Commits

Author SHA1 Message Date
Diego 6484d3fce4
add test 2024-02-13 19:07:17 +01:00
Diego a04f8d2757
make maxDurationInNonPriorityQueue configurable and none by default 2024-02-13 13:34:58 +01:00
Diego 5d9478b0ec
rename ttl property and message type 2024-02-13 13:19:17 +01:00
Diego f6775d2843
increase maxDurationInNonPriorityQueue to 1s 2024-02-13 13:19:17 +01:00
Diego 0d0ef3519f
add metric 2024-02-13 13:19:17 +01:00
Diego a10b8af737
drop old msgs to be relayed 2024-02-13 13:19:14 +01:00
Diego b16ec00327
clear prio queue before adding to it 2024-02-09 16:16:25 +01:00
Diego df0b98bfdd
dont add finished future 2024-02-09 16:14:00 +01:00
Diego 451637a644
await the last item 2024-02-09 16:11:43 +01:00
Diego 20a8e57262
wait for non-priority msg first before checking the priority queue 2024-02-09 14:42:06 +01:00
Diego a1f3940c06
handle empty msgs correctly 2024-02-09 14:33:04 +01:00
Diego 14d1787de8
fix test 2024-02-09 13:00:30 +01:00
Diego 07cab432ba
add comments 2024-02-09 12:57:59 +01:00
Diego 0317d589ce
remove unnecessary change 2024-02-09 12:57:59 +01:00
Diego 4158849521
clean sendPriorityQueue even if there is no non-priority msg 2024-02-09 12:57:59 +01:00
Diego 362c94bf34
use when defined(libp2p_expensive_metrics) 2024-02-09 12:57:59 +01:00
Diego cbe70da155
make relayed messages non priority (don't use an explicit queue for priority msgs) 2024-02-09 12:57:58 +01:00
diegomrsantos e0f70b7177
improvement: enhanced checkExpiring macro with custom timeout (#1023) 2024-02-09 11:51:27 +01:00
Ludovic Chenut c1dfd58772
fix: yamux metrics (#1022) 2024-02-08 12:36:58 +01:00
Álex Cabeza Romero 04af0c4323
test(flaky): Log checkExpiring failure (#1018)
Add simple logging mechanism on checkExpiring failure.
2024-02-06 17:47:13 +01:00
Ludovic Chenut eb0890cd6f
docs: add comments and improve yamux readability (#1006) 2024-02-02 15:14:02 +01:00
Álex Cabeza Romero 9bc5ec1566
tests(flaky): Increase check timeouts (#995)
Increase checkExpiring timeouts to verify impact on flaky tests.
2024-01-31 23:46:12 +00:00
diegomrsantos 5594bcb33e
fix: more metrics issues when libp2p_expensive_metrics is enabled (#1016) 2024-01-30 16:55:55 +01:00
diegomrsantos d46bcdb6ac
fix: compilation issue when `libp2p_expensive_metrics` is enabled. (#1014) 2024-01-29 11:31:11 +01:00
diegomrsantos 9468bb6b4d
fix(hole-punching-interop): update nim to 1.6.16 (#1012) 2024-01-26 11:15:40 +01:00
diegomrsantos 2725be64ba
fix: use a temp var in withValue (#1010) 2024-01-18 16:25:56 +01:00
diegomrsantos e3c967ad19
improvement(ci): improve ci daily workflows (#1002) 2023-12-18 20:14:33 +01:00
Ludovic Chenut d2c98bd87d
improvement(yamux): make the window size configurable (#987)
Co-authored-by: Diego <diego@status.im>
2023-12-15 16:30:50 +01:00
Ivan FB 3011ba4326
libp2p/multiaddress.nim: use of IpAddress instead of ValidIpAddress (#1001) 2023-12-12 12:53:36 +01:00
Etan Kissling c6566707fa
include connection info when logging identify message (#991) 2023-12-05 18:44:16 +01:00
diegomrsantos 3be681ec4d
feat: add hole-punching interop tests (#998) 2023-12-05 18:37:33 +01:00
Jacek Sieka 2ede0fa40c
remove redundant gcsafe annotations (#999) 2023-12-05 08:05:32 +01:00
Roman Zajic 7c195ab927
fix: remove forgotten "matrix-prep" job (#997) 2023-12-02 09:56:50 +08:00
Roman Zajic 3230407ffe
fix: move workflows for Nim Devel and legacy i386 from "Daily" (#968) 2023-12-01 17:47:47 +08:00
diegomrsantos deb72c8580
fix(dcutr): update the DCUtR initiator transport direction to Inbound (#994) 2023-11-29 17:38:47 +01:00
diegomrsantos ce0685c272
fix(identify): do not add p2p and relayed addrs to observed addr manager (#990) 2023-11-21 18:24:35 +01:00
diegomrsantos 1f4b090227
fix(yamux): doesn't work in a Relayv2 connection (#979)
Co-authored-by: Ludovic Chenut <ludovic@status.im>
2023-11-21 16:03:29 +01:00
diegomrsantos fb05f5ae22
fix(dcutr): handle tcp/p2p addresses (#989) 2023-11-20 17:06:17 +01:00
diegomrsantos e12f65f193
fix(multiaddress): add quic-v1 multiaddress support (#988) 2023-11-20 11:09:56 +01:00
diegomrsantos 4b3bc4f819
Make ObservedAddrManager injectable (#970) 2023-11-20 11:06:02 +01:00
diegomrsantos 6791f5e7bb
fix(dcutr): make the dcutr client inbound and the server outbound (#983) 2023-11-17 10:46:35 +01:00
diegomrsantos 08d9c84aca
Remove unittest2 range (#986) 2023-11-17 08:20:02 +01:00
Jacek Sieka 4e7eaba67a
fix chronos v4 compat (#982) 2023-11-16 16:54:34 +01:00
diegomrsantos 5f7a3ab829
fix: doc workflow (#985) 2023-11-16 15:58:05 +01:00
diegomrsantos ebef85c9d7
Rate limit fixes (#965) 2023-11-09 14:20:28 +01:00
diegomrsantos 3fc1236659
Revert "Prevent concurrent IWANT of the same message (#943)" (#977) 2023-11-03 15:24:27 +01:00
Ludovic Chenut fc4e9a8bb8
Fix WS transport when the connection aborts (#967) 2023-10-23 17:12:20 +02:00
Tanguy 60f953629d
Remove ConnManager from Upgrade (#959) 2023-10-13 12:08:17 +00:00
diegomrsantos 18b0f726df
Rate Limit tests (#953) 2023-10-05 15:12:07 +00:00
diegomrsantos 459f6851e7
Add a flag if a peer should be disconnected when above rate limit (#954) 2023-10-05 14:51:27 +02:00