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:
parent
e2ca5838d8
commit
d7959d6f29
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue