Skip to content

Commit

Permalink
feat(rust): increased portal throughput by doubling payload size
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-baldo committed Nov 26, 2024
1 parent fbbc92a commit 0b9d541
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions implementations/rust/ockam/ockam_api/tests/portals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ fn portal_low_bandwidth_connection_keep_working_for_60s() {
// ┌────────┐ ┌───────────┐ ┌────────┐
// │ Node └─────► TCP └────────► Node │
// │ 1 ◄─────┐Passthrough◄────────┐ 2 │
// └────┬───┘ │ 64KB/s │ └────▲───┘
// └────┬───┘ │ 128KB/s │ └────▲───┘
// │ └───────────┘ │
// │ ┌───────────┐ │
// │ Portal │ TCP │ Outlet │
Expand Down Expand Up @@ -270,8 +270,8 @@ fn portal_low_bandwidth_connection_keep_working_for_60s() {

let passthrough_server_handle = start_passthrough_server(
&second_node_listen_address.to_string(),
Disruption::LimitBandwidth(64 * 1024),
Disruption::LimitBandwidth(64 * 1024),
Disruption::LimitBandwidth(128 * 1024),
Disruption::LimitBandwidth(128 * 1024),
)
.await;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub enum PortalInternalMessage {
}

/// Maximum allowed size for a payload
pub const MAX_PAYLOAD_SIZE: usize = 48 * 1024;
pub const MAX_PAYLOAD_SIZE: usize = 96 * 1024;

#[cfg(test)]
mod test {
Expand Down

0 comments on commit 0b9d541

Please sign in to comment.