Skip to content

Commit

Permalink
add timer
Browse files Browse the repository at this point in the history
  • Loading branch information
cssivision committed Apr 22, 2024
1 parent f6b1fd4 commit 2d40414
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/http2socks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use hyper::upgrade::Upgraded;
use hyper::{Method, Request, Response};

use http2socks::args::parse_args;
use http2socks::rt::HyperIo;
use http2socks::rt::{HyperIo, HyperTimer};

const CONNECT_TIMEOUT: Duration = Duration::from_secs(3);

Expand Down Expand Up @@ -126,6 +126,7 @@ fn main() -> io::Result<()> {
if let Err(err) = http1::Builder::new()
.preserve_header_case(true)
.title_case_headers(true)
.timer(HyperTimer::new())
.serve_connection(
io,
service_fn(|req| {
Expand Down

0 comments on commit 2d40414

Please sign in to comment.