use of com.navercorp.pinpoint.grpc.server.ServerOption in project pinpoint by naver.
the class GrpcStatReceiverConfigurationTest method serverOption.
@Test
public void serverOption() {
ServerOption serverOption = configuration.getServerOption();
assertEquals(2, serverOption.getKeepAliveTime());
assertEquals(2, serverOption.getKeepAliveTimeout());
assertEquals(2, serverOption.getPermitKeepAliveTime());
assertEquals(2, serverOption.getMaxConnectionIdle());
assertEquals(2, serverOption.getMaxConcurrentCallsPerConnection());
// 2M
assertEquals(2 * 1024 * 1024, serverOption.getMaxInboundMessageSize());
// 2K
assertEquals(2 * 1024, serverOption.getMaxHeaderListSize());
// 2M
assertEquals(2 * 1024 * 1024, serverOption.getFlowControlWindow());
assertEquals(2, serverOption.getHandshakeTimeout());
// 2M
assertEquals(2 * 1024 * 1024, serverOption.getReceiveBufferSize());
}
Aggregations