Apache HTTPD
h2_workers.h
Go to the documentation of this file.
1/* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef __mod_h2__h2_workers__
18#define __mod_h2__h2_workers__
19
20/* Thread pool specific to executing secondary connections.
21 * Has a minimum and maximum number of workers it creates.
22 * Starts with minimum workers and adds some on load,
23 * reduces the number again when idle.
24 */
27struct h2_mplx;
28struct h2_request;
29struct h2_fifo;
30
31typedef struct h2_workers h2_workers;
32
33
47
52
57
71
81
87typedef void ap_conn_producer_done(void *baton, conn_rec *conn);
88
94typedef void ap_conn_producer_shutdown(void *baton, int graceful);
95
110 const char *name,
114 void *baton);
115
121
128
129#endif /* defined(__mod_h2__h2_workers__) */
ap_vhost_iterate_conn_cb void * baton
Definition http_vhost.h:87
apr_size_t size
const char int apr_pool_t * pool
Definition apr_cstr.h:84
int apr_status_t
Definition apr_errno.h:44
const char * s
Definition apr_strings.h:95
apr_int64_t apr_time_t
Definition apr_time.h:45
static struct h2_workers * workers
Definition h2_c1.c:48
h2_workers * h2_workers_create(server_rec *s, apr_pool_t *pool, int max_slots, int min_active, apr_time_t idle_limit)
Definition h2_workers.c:422
ap_conn_producer_t * h2_workers_register(h2_workers *workers, apr_pool_t *producer_pool, const char *name, ap_conn_producer_next *fn_next, ap_conn_producer_done *fn_done, ap_conn_producer_shutdown *fn_shutdown, void *baton)
Definition h2_workers.c:563
apr_uint32_t h2_workers_get_max_workers(h2_workers *workers)
Definition h2_workers.c:538
conn_rec * ap_conn_producer_next(void *baton, int *pmore)
Definition h2_workers.h:80
void ap_conn_producer_done(void *baton, conn_rec *conn)
Definition h2_workers.h:87
void h2_workers_shutdown(h2_workers *workers, int graceful)
Definition h2_workers.c:543
apr_status_t h2_workers_activate(h2_workers *workers, ap_conn_producer_t *producer)
Definition h2_workers.c:611
void ap_conn_producer_shutdown(void *baton, int graceful)
Definition h2_workers.h:94
apr_status_t h2_workers_join(h2_workers *workers, ap_conn_producer_t *producer)
Definition h2_workers.c:589
char * name
ap_conn_producer_shutdown * fn_shutdown
Definition h2_workers.c:48
ap_conn_producer_done * fn_done
Definition h2_workers.c:47
ap_conn_producer_next * fn_next
Definition h2_workers.c:46
Structure to store things which are per connection.
Definition httpd.h:1152
apr_uint32_t max_slots
Definition h2_workers.c:79
volatile apr_time_t idle_limit
Definition h2_workers.c:81
apr_uint32_t min_active
Definition h2_workers.c:80
A structure to store information for each virtual server.
Definition httpd.h:1322