Skip to content

Commit

Permalink
ws set nodelay for tcp stream (#438)
Browse files Browse the repository at this point in the history
Co-authored-by: mdben1247 <mdben1247@users.noreply.github.com>
  • Loading branch information
mdben1247 and mdben1247 authored Dec 28, 2020
1 parent fdf11dc commit 8c98f48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transports/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ impl WsServerTask {
let addrs = format!("{}:{}", host, port);

let stream = compat::raw_tcp_stream(addrs).await?;
stream.set_nodelay(true)?;
let socket = if scheme == "wss" {
#[cfg(any(feature = "ws-tls-tokio", feature = "ws-tls-async-std"))]
{
Expand Down

0 comments on commit 8c98f48

Please sign in to comment.