netty: Backport SETTINGS ACK sequencing fix

This fix was made in netty/netty#6521. Fixes #2801
This commit is contained in:
Eric Anderson 2017-03-14 14:08:03 -07:00
parent 9ef07916f7
commit 2cb6ecc3b3
1 changed files with 2 additions and 2 deletions

View File

@ -450,11 +450,11 @@ public class FixedHttp2ConnectionDecoder implements Http2ConnectionDecoder {
@Override
public void onSettingsRead(ChannelHandlerContext ctx, Http2Settings settings) throws Http2Exception {
encoder.remoteSettings(settings);
// Acknowledge receipt of the settings.
encoder.writeSettingsAck(ctx, ctx.newPromise());
encoder.remoteSettings(settings);
listener.onSettingsRead(ctx, settings);
}