Apache HTTPD
Macros | Functions | Variables
connection.c File Reference
#include "apr.h"
#include "apr_strings.h"
#include "ap_config.h"
#include "httpd.h"
#include "http_connection.h"
#include "http_request.h"
#include "http_protocol.h"
#include "ap_mpm.h"
#include "http_config.h"
#include "http_core.h"
#include "http_vhost.h"
#include "scoreboard.h"
#include "http_log.h"
#include "util_filter.h"

Go to the source code of this file.

Macros

#define MAX_SECS_TO_LINGER   30
 
#define SECONDS_TO_LINGER   2
 

Functions

void ap_hook_create_connection (ap_HOOK_create_connection_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_create_connection (void)
 
conn_recap_run_create_connection (apr_pool_t *p, server_rec *server, apr_socket_t *csd, long conn_id, void *sbh, apr_bucket_alloc_t *alloc)
 
void ap_hook_process_connection (ap_HOOK_process_connection_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_process_connection (void)
 
int ap_run_process_connection (conn_rec *c)
 
void ap_hook_pre_connection (ap_HOOK_pre_connection_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_pre_connection (void)
 
int ap_run_pre_connection (conn_rec *c, void *csd)
 
void ap_hook_pre_close_connection (ap_HOOK_pre_close_connection_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_pre_close_connection (void)
 
int ap_run_pre_close_connection (conn_rec *c)
 
apr_status_t ap_shutdown_conn (conn_rec *c, int flush)
 
void ap_flush_conn (conn_rec *c)
 
int ap_prep_lingering_close (conn_rec *c)
 
int ap_start_lingering_close (conn_rec *c)
 
void ap_lingering_close (conn_rec *c)
 
void ap_process_connection (conn_rec *c, void *csd)
 

Variables

struct { 
 
   apr_array_header_t *   link_create_connection 
 
   apr_array_header_t *   link_process_connection 
 
   apr_array_header_t *   link_pre_connection 
 
   apr_array_header_t *   link_pre_close_connection 
 
_hooks 
 

Macro Definition Documentation

◆ MAX_SECS_TO_LINGER

#define MAX_SECS_TO_LINGER   30

Definition at line 67 of file connection.c.

◆ SECONDS_TO_LINGER

#define SECONDS_TO_LINGER   2

Definition at line 119 of file connection.c.

Function Documentation

◆ ap_flush_conn()

void ap_flush_conn ( conn_rec c)

Definition at line 93 of file connection.c.

◆ ap_hook_create_connection()

void ap_hook_create_connection ( ap_HOOK_create_connection_t pf,
const char *const aszPre,
const char *const aszSucc,
int  nOrder 
)

Definition at line 41 of file connection.c.

◆ ap_hook_get_create_connection()

apr_array_header_t * ap_hook_get_create_connection ( void  )

Definition at line 41 of file connection.c.

◆ ap_hook_get_pre_close_connection()

apr_array_header_t * ap_hook_get_pre_close_connection ( void  )

Definition at line 44 of file connection.c.

◆ ap_hook_get_pre_connection()

apr_array_header_t * ap_hook_get_pre_connection ( void  )

Definition at line 43 of file connection.c.

◆ ap_hook_get_process_connection()

apr_array_header_t * ap_hook_get_process_connection ( void  )

Definition at line 42 of file connection.c.

◆ ap_hook_pre_close_connection()

void ap_hook_pre_close_connection ( ap_HOOK_pre_close_connection_t pf,
const char *const aszPre,
const char *const aszSucc,
int  nOrder 
)

Definition at line 44 of file connection.c.

◆ ap_hook_pre_connection()

void ap_hook_pre_connection ( ap_HOOK_pre_connection_t pf,
const char *const aszPre,
const char *const aszSucc,
int  nOrder 
)

Definition at line 43 of file connection.c.

◆ ap_hook_process_connection()

void ap_hook_process_connection ( ap_HOOK_process_connection_t pf,
const char *const aszPre,
const char *const aszSucc,
int  nOrder 
)

Definition at line 42 of file connection.c.

◆ ap_lingering_close()

void ap_lingering_close ( conn_rec c)

< Set on non-blocking sockets * (timeout != 0) on which the * previous read() did not fill a buffer * completely. the next apr_socket_recv() * will first call select()/poll() rather than * going straight into read(). (Can also * be set by an application to force a * select()/poll() call before the next * read, in cases where the app expects * that an immediate read would fail.)

Definition at line 149 of file connection.c.

◆ ap_prep_lingering_close()

int ap_prep_lingering_close ( conn_rec c)

Definition at line 98 of file connection.c.

◆ ap_process_connection()

void ap_process_connection ( conn_rec c,
void *  csd 
)

Definition at line 210 of file connection.c.

◆ ap_run_create_connection()

conn_rec * ap_run_create_connection ( apr_pool_t p,
server_rec server,
apr_socket_t csd,
long  conn_id,
void *  sbh,
apr_bucket_alloc_t alloc 
)

Definition at line 41 of file connection.c.

◆ ap_run_pre_close_connection()

int ap_run_pre_close_connection ( conn_rec c)

< Module has handled this stage.

< Module has handled this stage.

< Module declines to handle

< Module has handled this stage.

Definition at line 44 of file connection.c.

◆ ap_run_pre_connection()

int ap_run_pre_connection ( conn_rec c,
void *  csd 
)

< Module has handled this stage.

< Module has handled this stage.

< Module declines to handle

< Module has handled this stage.

Definition at line 43 of file connection.c.

◆ ap_run_process_connection()

int ap_run_process_connection ( conn_rec c)

< Module declines to handle

< Module declines to handle

Definition at line 42 of file connection.c.

◆ ap_shutdown_conn()

apr_status_t ap_shutdown_conn ( conn_rec c,
int  flush 
)

Definition at line 70 of file connection.c.

◆ ap_start_lingering_close()

int ap_start_lingering_close ( conn_rec c)

Definition at line 121 of file connection.c.

Variable Documentation

◆ [struct]

struct { ... } _hooks

◆ link_create_connection

apr_array_header_t* link_create_connection

Definition at line 38 of file connection.c.

◆ link_pre_close_connection

apr_array_header_t* link_pre_close_connection

Definition at line 38 of file connection.c.

◆ link_pre_connection

apr_array_header_t* link_pre_connection

Definition at line 38 of file connection.c.

◆ link_process_connection

apr_array_header_t* link_process_connection

Definition at line 38 of file connection.c.