diff --git a/aquatic_http/src/lib/network/connection.rs b/aquatic_http/src/lib/network/connection.rs index 2a374d5..aa6e6a0 100644 --- a/aquatic_http/src/lib/network/connection.rs +++ b/aquatic_http/src/lib/network/connection.rs @@ -45,17 +45,6 @@ impl EstablishedConnection { } } - pub fn shutdown(&mut self){ - match self.stream { - Stream::TcpStream(ref mut s) => { - s.shutdown(::std::net::Shutdown::Both); - }, - Stream::TlsStream(ref mut s) => { - s.shutdown(); - }, - } - } - pub fn read_request(&mut self) -> Result { if (self.buf.len() - self.bytes_read < 512) & (self.buf.len() <= 3072){ self.buf.extend_from_slice(&[0; 1024]);