public HTTPRequestService(MsgCommandChannel<?> msgCommandChannel, int queueLength, int maxMessageSize) {
this.msgCommandChannel = msgCommandChannel;
if (msgCommandChannel.builder.getHTTPClientConfig().isTLS()) {
int tlsBody = Math.max(SSLUtil.MinTLSBlock, maxMessageSize);
int tlsLen = Math.max(Math.min(queueLength, (1<<27)/tlsBody),4);
msgCommandChannel.pcm.ensureSize(ClientHTTPRequestSchema.class, tlsLen, tlsBody);
} else {
msgCommandChannel.pcm.ensureSize(ClientHTTPRequestSchema.class, queueLength, maxMessageSize);
}
MsgCommandChannel.growCommandCountRoom(msgCommandChannel, queueLength);
msgCommandChannel.initFeatures |= MsgCommandChannel.NET_REQUESTER;
}