Skip to content

Commit

Permalink
update timeouts for test server
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Dec 25, 2019
1 parent 6db909a commit a4ad5e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,15 +730,15 @@ where
.map_err(|e| log::error!("Can not set alpn protocol: {:?}", e));
Connector::new()
.conn_lifetime(time::Duration::from_secs(0))
.timeout(time::Duration::from_millis(3000))
.timeout(time::Duration::from_millis(30000))
.ssl(builder.build())
.finish()
}
#[cfg(not(feature = "openssl"))]
{
Connector::new()
.conn_lifetime(time::Duration::from_secs(0))
.timeout(time::Duration::from_millis(3000))
.timeout(time::Duration::from_millis(30000))
.finish()
}
};
Expand Down
4 changes: 2 additions & 2 deletions test-server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ pub fn test_server<F: ServiceFactory<TcpStream>>(factory: F) -> TestServer {
.map_err(|e| log::error!("Can not set alpn protocol: {:?}", e));
Connector::new()
.conn_lifetime(time::Duration::from_secs(0))
.timeout(time::Duration::from_millis(3000))
.timeout(time::Duration::from_millis(30000))
.ssl(builder.build())
.finish()
}
#[cfg(not(feature = "openssl"))]
{
Connector::new()
.conn_lifetime(time::Duration::from_secs(0))
.timeout(time::Duration::from_millis(3000))
.timeout(time::Duration::from_millis(30000))
.finish()
}
};
Expand Down

0 comments on commit a4ad5e6

Please sign in to comment.