Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reimplement recovery and congestion control #1742

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions apps/src/bin/quiche-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ fn main() {
client.loss_rate = loss_rate;
}

#[allow(deprecated)]
let max_send_burst =
client.conn.send_quantum().min(client.max_send_burst) /
client.max_datagram_size *
Expand Down
1 change: 1 addition & 0 deletions quiche/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ pkg-config = { version = "0.3", optional = true }

[dependencies]
either = { version = "1.8", default-features = false }
enum_dispatch = "0.3"
log = { version = "0.4", features = ["std"] }
libc = "0.2"
libm = "0.2"
Expand Down
10 changes: 8 additions & 2 deletions quiche/src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,10 @@ pub extern fn quiche_conn_peer_streams_left_uni(conn: &Connection) -> u64 {

#[no_mangle]
pub extern fn quiche_conn_send_quantum(conn: &Connection) -> size_t {
conn.send_quantum() as size_t
#[allow(deprecated)]
{
conn.send_quantum() as size_t
}
}

#[no_mangle]
Expand Down Expand Up @@ -1540,7 +1543,10 @@ pub extern fn quiche_conn_send_quantum_on_path(
let local = std_addr_from_c(local, local_len);
let peer = std_addr_from_c(peer, peer_len);

conn.send_quantum_on_path(local, peer) as size_t
#[allow(deprecated)]
{
conn.send_quantum_on_path(local, peer) as size_t
}
}

#[no_mangle]
Expand Down
Loading