Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frameworks/proa/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"async",
"latency-10k",
"latency-1m",
"connections-1m",
"connections-1m-tls",
"json-comp",
"json-tls",
"8gbit",
Expand Down
7 changes: 3 additions & 4 deletions frameworks/proa/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ fn load_tls_config() -> Option<Arc<ServerConfig>> {
.ok()?;
config.ignore_client_order = true;
config.send_half_rtt_data = true;
config.send_tls13_tickets = 0;
config.alpn_protocols = vec![b"http/1.1".to_vec()];
Some(Arc::new(config))
}
Expand Down Expand Up @@ -322,10 +323,7 @@ async fn serve_plain(listener: TcpListener, app: Router) -> std::io::Result<()>
};
let _ = stream.set_nodelay(true);
let service = TowerToHyperService::new(app.clone());
let h1 = h1.clone();
tokio::spawn(async move {
let _ = h1.serve_connection(TokioIo::new(stream), service).await;
});
tokio::spawn(h1.serve_connection(TokioIo::new(stream), service));
}
}

Expand Down Expand Up @@ -374,6 +372,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

if let (Some(tls_cfg), Some(std_tls)) = (tls_config, std_tls) {
let tls_app = Router::new()
.route("/baseline11", get(baseline_get).post(baseline_post))
.route("/json/{count}", get(json_items_plain))
.route("/echo", post(echo_body));
serve_tls(
Expand Down
Loading