2005-02-20 14:27:00 +00:00
|
|
|
#ifndef _CONNECTIONS_H_
|
|
|
|
#define _CONNECTIONS_H_
|
2016-03-19 15:14:35 +00:00
|
|
|
#include "first.h"
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2018-03-25 07:45:05 +00:00
|
|
|
#include "base.h"
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2019-02-04 04:27:57 +00:00
|
|
|
__attribute_cold__
|
2005-02-20 14:27:00 +00:00
|
|
|
void connections_free(server *srv);
|
|
|
|
|
2019-06-21 10:51:23 +00:00
|
|
|
__attribute_cold__
|
|
|
|
void connection_graceful_shutdown_maint (server *srv);
|
|
|
|
|
|
|
|
void connection_periodic_maint (server *srv, time_t cur_ts);
|
|
|
|
|
2005-02-20 14:27:00 +00:00
|
|
|
connection * connection_accept(server *srv, server_socket *srv_sock);
|
2016-04-29 04:11:45 +00:00
|
|
|
connection * connection_accepted(server *srv, server_socket *srv_socket, sock_addr *cnt_addr, int cnt);
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2020-01-10 05:17:12 +00:00
|
|
|
const char * connection_get_state(request_state_t state);
|
|
|
|
const char * connection_get_short_state(request_state_t state);
|
2019-12-05 04:01:41 +00:00
|
|
|
int connection_state_machine(connection *con);
|
2020-01-13 02:51:12 +00:00
|
|
|
handler_t connection_handle_read_post_state(request_st *r);
|
|
|
|
|
|
|
|
__attribute_cold__
|
|
|
|
handler_t connection_handle_read_post_error(request_st *r, int http_status);
|
|
|
|
|
2019-11-25 06:54:08 +00:00
|
|
|
int connection_write_chunkqueue(connection *con, chunkqueue *c, off_t max_bytes);
|
2020-01-13 02:51:12 +00:00
|
|
|
void connection_response_reset(request_st *r);
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2019-12-21 03:03:51 +00:00
|
|
|
#define joblist_append(con) connection_list_append(&(con)->srv->joblist, (con))
|
2019-10-04 06:10:02 +00:00
|
|
|
void connection_list_append(connections *conns, connection *con);
|
|
|
|
|
2005-02-20 14:27:00 +00:00
|
|
|
#endif
|