Issue #8170 - only fail stream if connection onIdleExpired returns true
Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
e4b0db8666
commit
1faa06179a
|
@ -57,8 +57,11 @@ public class ServerHTTP2StreamEndPoint extends HTTP2StreamEndPoint implements HT
|
|||
Connection connection = getConnection();
|
||||
if (connection != null)
|
||||
result = connection.onIdleExpired();
|
||||
offerFailure(failure);
|
||||
consumer.accept(() -> close(failure));
|
||||
if (result)
|
||||
{
|
||||
offerFailure(failure);
|
||||
consumer.accept(() -> close(failure));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue