Bug fix: PoolingAsyncClientConnectionManager fails to update the execution context upon upgrade to HTTP/2

This commit is contained in:
Oleg Kalnichevski 2022-11-05 16:11:16 +01:00
parent 0390f8d274
commit d76d27bed7
1 changed files with 1 additions and 0 deletions

View File

@ -507,6 +507,7 @@ public class PoolingAsyncClientConnectionManager implements AsyncClientConnectio
@Override @Override
public void completed(final ProtocolIOSession protocolIOSession) { public void completed(final ProtocolIOSession protocolIOSession) {
context.setProtocolVersion(HttpVersion.HTTP_2);
if (callback != null) { if (callback != null) {
callback.completed(endpoint); callback.completed(endpoint);
} }