struct http_client *client;
const char *log_prefix;
pool_t pool;
+ size_t pool_size;
- pool = pool_alloconly_create("http client", 1024);
+ pool_size = (set != NULL && set->ssl != NULL) ? 8192 : 1024; /* certs will be >4K */
+ pool = pool_alloconly_create("http client", pool_size);
client = p_new(pool, struct http_client, 1);
client->pool = pool;
client->ioloop = current_ioloop;
{
struct http_client_context *cctx;
pool_t pool;
+ size_t pool_size;
- pool = pool_alloconly_create("http client context", 1024);
+ pool_size = (set->ssl != NULL) ? 8192 : 1024; /* certs will be >4K */
+ pool = pool_alloconly_create("http client context", pool_size);
cctx = p_new(pool, struct http_client_context, 1);
cctx->pool = pool;
cctx->refcount = 1;
{
struct http_server *server;
pool_t pool;
+ size_t pool_size;
- pool = pool_alloconly_create("http server", 1024);
+ pool_size = (set->ssl != NULL) ? 10240 : 1024; /* ca/cert/key will be >8K */
+ pool = pool_alloconly_create("http server", pool_size);
server = p_new(pool, struct http_server, 1);
server->pool = pool;
if (set->rawlog_dir != NULL && *set->rawlog_dir != '\0')