Skip to content

Commit

Permalink
disable GSO (Generic Segmentation Offload) for all outgoing QUIC-conn…
Browse files Browse the repository at this point in the history
…ects (#200)

should fix #199

Co-authored-by: GroovieGermanikus <groovie@mango.markets>
  • Loading branch information
grooviegermanikus and grooviegermanikus committed Sep 18, 2023
1 parent 433550d commit 79ef230
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 17 deletions.
79 changes: 63 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ prometheus = "0.13.3"
lazy_static = "1.4.0"
dotenv = "0.15.0"
async-channel = "1.8.0"
quinn = "0.9.3"
quinn = { git = "https://github.com/grooviegermanikus/quinn.git", branch = "0.9.4-manually-disable-gso", version = "0.9.4" }
rustls = { version = "=0.20.8", default-features = false }
solana-lite-rpc-services = {path = "services", version="0.2.3"}
solana-lite-rpc-core = {path = "core", version="0.2.3"}
Expand Down
1 change: 1 addition & 0 deletions core/src/quic_connection_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ impl QuicConnectionUtils {
let timeout = IdleTimeout::try_from(Duration::from_secs(1)).unwrap();
transport_config.max_idle_timeout(Some(timeout));
transport_config.keep_alive_interval(Some(Duration::from_millis(500)));
transport_config.enable_segmentation_offload(false);
config.transport_config(Arc::new(transport_config));

endpoint.set_default_client_config(config);
Expand Down
1 change: 1 addition & 0 deletions quic-forward-proxy/src/outbound/tx_forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ fn create_tpu_client_endpoint(
let timeout = IdleTimeout::try_from(QUIC_MAX_TIMEOUT).unwrap();
transport_config.max_idle_timeout(Some(timeout));
transport_config.keep_alive_interval(Some(Duration::from_millis(500)));
transport_config.enable_segmentation_offload(false);

config.transport_config(Arc::new(transport_config));

Expand Down
1 change: 1 addition & 0 deletions services/src/tpu_utils/quic_proxy_connection_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ impl QuicProxyConnectionManager {
let timeout = Duration::from_secs(10).try_into().unwrap();
transport_config.max_idle_timeout(Some(timeout));
transport_config.keep_alive_interval(Some(Duration::from_millis(500)));
transport_config.enable_segmentation_offload(false);

config.transport_config(Arc::new(transport_config));
endpoint.set_default_client_config(config);
Expand Down

0 comments on commit 79ef230

Please sign in to comment.