When using QUIC numerous `State mismatch` errors appear

Release: gemini-3f-2023-sep-29
Listening on both QUIC and QUIC-v1.
So far, the problem only arises for the farmer.

The issue is described in Quic state mismatch error · Issue #3507 · libp2p/rust-libp2p · GitHub and fixed in libp2p-quic v0.9.0.

2 Likes

We have not upgraded to latest QUIC version on 3f and I’m not sure we will, I’ll let @shamil to weight in on that. But it should be fully functional on next version of Gemini network and maybe even enabled as the primary protocol.

Well, I tried building it myself with libp2p-quic v0.9.2 and everything is working fine so far, except, of course, there are almost no peers on QUIC.

Also the farmer’s logs are filled with these warnings. Based on what I have researched, they are generally harmless.

2023-10-01T07:46:48.960778Z  INFO single_disk_farm{disk_farm_index=0}: subspace_farmer::reward_signing: Successfully signed reward hash 0xf498ddb2dfc3dbba8d75aa398bfd962214ffa24977f448696495cd737c30122a
2023-10-01T07:53:55.462243Z  WARN quinn_proto::connection: discarding possible duplicate packet                
2023-10-01T07:53:55.512635Z  WARN quinn_proto::connection: discarding possible duplicate packet
2023-10-01T07:53:55.512890Z  WARN quinn_proto::connection: discarding possible duplicate packet                
2023-10-01T07:53:55.820844Z  WARN quinn_proto::connection: discarding possible duplicate packet                
2023-10-01T07:53:55.821112Z  WARN quinn_proto::connection: discarding possible duplicate packet                
2023-10-01T07:53:55.821862Z  WARN quinn_proto::connection: discarding possible duplicate packet
2023-10-01T07:53:55.822154Z  WARN quinn_proto::connection: discarding possible duplicate packet                
2023-10-01T07:53:56.123143Z  WARN quinn_proto::connection: discarding possible duplicate packet                
2023-10-01T07:53:56.123165Z  WARN quinn_proto::connection: discarding possible duplicate packet                
2023-10-01T07:53:56.124398Z  WARN quinn_proto::connection: discarding possible duplicate packet                
2023-10-01T08:03:47.868658Z  INFO single_disk_farm{disk_farm_index=0}: subspace_farmer::reward_signing: Successfully signed reward hash 0x9b1c3b3741349c46ded282ca79d7e46a237d7d0fb125b4bbe5596b426fd3afee
1 Like

It might be necessary to upgrade the rest of the network to newer version as well to avoid these

Is your Quic version compiled after modifying the official code? I also want to give Quic a try.

If you want to use libp2p-quic v0.9.2, just edit the corresponding line with the crate version in the crates/subspace-networking/Cargo.toml file:

[dependencies.libp2p-quic]
+ version = "0.9.2-alpha"
- version = "0.8.0-alpha"
features = ["tokio"]

You don’t need -alpha anymore

This PR upgrades QUIC: Adjust QUIC usage in subspace-networking crate by shamil-gadelshin · Pull Request #2075 · subspace/subspace · GitHub

1 Like