mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 23:51:06 +01:00
Ensure TCP connection is properly shut down when session is dropped
This commit is contained in:
parent
77406cbb71
commit
c8d9d06436
@ -1,6 +1,7 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
- Ensure TCP connection is properly shut down when session is dropped
|
||||||
|
|
||||||
## 0.3.0
|
## 0.3.0
|
||||||
|
|
||||||
|
@ -145,6 +145,10 @@ impl Stream for StreamingBody {
|
|||||||
return Poll::Ready(Some(Ok(mem::take(&mut this.buf).freeze())));
|
return Poll::Ready(Some(Ok(mem::take(&mut this.buf).freeze())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if this.closing {
|
||||||
|
return Poll::Ready(None);
|
||||||
|
}
|
||||||
|
|
||||||
Poll::Pending
|
Poll::Pending
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user