1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 18:09:22 +02:00

add ssl handshake timeout tests

This commit is contained in:
Nikolay Kim
2018-10-02 11:32:43 -07:00
parent 724668910b
commit b59712c439
3 changed files with 96 additions and 4 deletions

View File

@ -206,7 +206,7 @@ where
// shutdown
if self.flags.contains(Flags::SHUTDOWN) {
if self.flags.intersects(Flags::WRITE_DISCONNECTED) {
if self.flags.contains(Flags::WRITE_DISCONNECTED) {
return Ok(Async::Ready(()));
}
return self.poll_flush(true);
@ -220,7 +220,7 @@ where
self.poll_flush(false)?;
// deal with keep-alive and stream eof (client-side write shutdown)
if self.tasks.is_empty() && self.flags.intersects(Flags::FLUSHED) {
if self.tasks.is_empty() && self.flags.contains(Flags::FLUSHED) {
// handle stream eof
if self
.flags