mirror of
https://github.com/actix/actix-extras.git
synced 2025-01-22 14:55:56 +01:00
fix: ensure TCP connection is properly shut down when Session is dropped (#476)
* Ensure TCP connection is properly shut down when session is dropped * Update CHANGELOG.md --------- Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
parent
cd1b77134e
commit
98847b9279
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
- Ensure TCP connection is properly shut down when session is dropped.
|
||||||
|
|
||||||
## 0.3.0
|
## 0.3.0
|
||||||
|
|
||||||
- Add `AggregatedMessage[Stream]` types.
|
- Add `AggregatedMessage[Stream]` types.
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user