mirror of https://github.com/grpc/grpc-java.git
Fix a NPE, Http20Draft12 requires non-null debugData for FrameWriter.goAway().
------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=74143304
This commit is contained in:
parent
070e308763
commit
b645b38a6a
|
|
@ -152,7 +152,7 @@ public class OkHttpClientTransport extends AbstractClientTransport {
|
||||||
abort(new Status(Code.INTERNAL, "Transport stopped"));
|
abort(new Status(Code.INTERNAL, "Transport stopped"));
|
||||||
// Send GOAWAY with lastGoodStreamId of 0, since we don't expect any server-initiated streams.
|
// Send GOAWAY with lastGoodStreamId of 0, since we don't expect any server-initiated streams.
|
||||||
// The GOAWAY is part of graceful shutdown.
|
// The GOAWAY is part of graceful shutdown.
|
||||||
frameWriter.goAway(0, ErrorCode.NO_ERROR, null);
|
frameWriter.goAway(0, ErrorCode.NO_ERROR, new byte[0]);
|
||||||
}
|
}
|
||||||
stopIfNecessary();
|
stopIfNecessary();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue