Removed a work-around for incorrect HTTP/1.1 async connection state reporting which has been fixed in core since 5.3.1

This commit is contained in:
Oleg Kalnichevski 2024-10-22 16:02:19 +02:00
parent e2ca5838d8
commit d7959d6f29
1 changed files with 1 additions and 5 deletions

View File

@ -102,11 +102,7 @@ final class DefaultManagedAsyncClientConnection implements ManagedAsyncClientCon
if (ioSession.isOpen()) { if (ioSession.isOpen()) {
final IOEventHandler handler = ioSession.getHandler(); final IOEventHandler handler = ioSession.getHandler();
if (handler instanceof HttpConnection) { if (handler instanceof HttpConnection) {
final HttpConnection conn = (HttpConnection) handler; return ((HttpConnection) handler).isOpen();
final ProtocolVersion protocolVersion = conn.getProtocolVersion();
if (protocolVersion != null && protocolVersion.greaterEquals(HttpVersion.HTTP_2)) {
return conn.isOpen();
}
} }
return true; return true;
} else { } else {