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
1 change: 0 additions & 1 deletion src/reject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ impl fmt::Debug for Reason {
}

#[doc(hidden)]
#[deprecated(note = "Use warp::reply::json and warp::reply::with_status instead.")]
impl serde::Serialize for Rejection {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
Expand Down
2 changes: 2 additions & 0 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::net::SocketAddr;
#[cfg(feature = "tls")]
use std::path::Path;
use std::sync::Arc;
use std::time::Duration;

use futures::{Async, Future, Poll, Stream};
use hyper::server::conn::AddrIncoming;
Expand Down Expand Up @@ -62,6 +63,7 @@ macro_rules! addr_incoming {
($addr:expr) => {{
let mut incoming = AddrIncoming::bind($addr)?;
incoming.set_nodelay(true);
incoming.set_keepalive(Some(Duration::new(7200, 0)));
let addr = incoming.local_addr();
(addr, incoming)
}};
Expand Down