Add a overridable method 'onClose' in HttpClientTransportOverHTTP2.
- able to look GoAwayFrame through 'onClose' method. Signed-off-by: Jinho Shin <drdoteam@gmail.com>
This commit is contained in:
parent
6808953561
commit
3facfb6066
|
@ -137,6 +137,10 @@ public class HttpClientTransportOverHTTP2 extends ContainerLifeCycle implements
|
||||||
return new HttpConnectionOverHTTP2(destination, session);
|
return new HttpConnectionOverHTTP2(destination, session);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void onClose(HttpConnectionOverHTTP2 connection, GoAwayFrame frame) {
|
||||||
|
connection.close();
|
||||||
|
}
|
||||||
|
|
||||||
private class SessionListenerPromise extends Session.Listener.Adapter implements Promise<Session>
|
private class SessionListenerPromise extends Session.Listener.Adapter implements Promise<Session>
|
||||||
{
|
{
|
||||||
private final HttpDestinationOverHTTP2 destination;
|
private final HttpDestinationOverHTTP2 destination;
|
||||||
|
@ -181,7 +185,7 @@ public class HttpClientTransportOverHTTP2 extends ContainerLifeCycle implements
|
||||||
@Override
|
@Override
|
||||||
public void onClose(Session session, GoAwayFrame frame)
|
public void onClose(Session session, GoAwayFrame frame)
|
||||||
{
|
{
|
||||||
connection.close();
|
HttpClientTransportOverHTTP2.this.onClose(connection, frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue