mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_http: remove Connection.shutdown fn
This commit is contained in:
parent
c5194cf9d1
commit
c8b94adab5
1 changed files with 0 additions and 11 deletions
|
|
@ -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<Request, RequestReadError> {
|
||||
if (self.buf.len() - self.bytes_read < 512) & (self.buf.len() <= 3072){
|
||||
self.buf.extend_from_slice(&[0; 1024]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue