Searched refs:conn (Results 1 - 22 of 22) sorted by relevance

/httpd/include/
H A Dhttp_vhost.h68 * @param conn The current Connection
73 typedef int(*ap_vhost_iterate_conn_cb)(void* baton, conn_rec* conn, server_rec* s);
77 * @param conn The current connection
85 AP_DECLARE(int) ap_vhost_iterate_given_conn(conn_rec *conn,
91 * @param conn The current connection
93 AP_DECLARE(void) ap_update_vhost_given_ip(conn_rec *conn); variable
H A Dhttp_core.h164 * @param conn The current connection
185 AP_DECLARE(const char *) ap_get_remote_host(conn_rec *conn, void *dir_config, int type, int *str_is_ip);
/httpd/modules/metadata/
H A Dmod_ident.c87 static apr_status_t rfc1413_connect(apr_socket_t **newsock, conn_rec *conn, argument
93 if ((rv = apr_sockaddr_info_get(&localsa, conn->local_ip, APR_UNSPEC,
95 0, conn->pool)) != APR_SUCCESS) {
100 conn->local_ip);
104 if ((rv = apr_sockaddr_info_get(&destsa, conn->client_ip,
106 RFC1413_PORT, 0, conn->pool)) != APR_SUCCESS) {
111 conn->client_ip);
117 SOCK_STREAM, 0, conn->pool)) != APR_SUCCESS) {
158 static apr_status_t rfc1413_query(apr_socket_t *sock, conn_rec *conn, argument
169 sav_our_port = conn
308 conn_rec *conn = r->connection; local
[all...]
/httpd/modules/proxy/
H A Dmod_proxy_ajp.c161 proxy_conn_rec *conn,
210 status = ajp_send_header(conn->sock, r, maxsize, uri);
212 conn->close = 1;
215 conn->worker->cp->addr,
216 conn->worker->s->hostname);
237 conn->close = 1;
258 conn->close = 1;
278 conn->close = 1;
289 status = ajp_send_data_msg(conn->sock, msg, bufsiz);
293 conn
160 ap_proxy_ajp_request(apr_pool_t *p, request_rec *r, proxy_conn_rec *conn, conn_rec *origin, proxy_dir_conf *conf, apr_uri_t *uri, char *url, char *server_portstr) argument
[all...]
H A Dproxy_util.c1347 PROXY_DECLARE(int) ap_proxy_connection_reusable(proxy_conn_rec *conn) argument
1349 proxy_worker *worker = conn->worker;
1351 return ! (conn->close || !worker->s->is_address_reusable || worker->s->disablereuse);
1356 proxy_conn_rec *conn = (proxy_conn_rec *)theconn; local
1357 proxy_worker *worker = conn->worker;
1367 if (conn->r) {
1368 apr_pool_destroy(conn->r->pool);
1369 conn->r = NULL;
1373 if (conn->inreslist) {
1374 ap_log_perror(APLOG_MARK, APLOG_ERR, 0, conn
1405 socket_cleanup(proxy_conn_rec *conn) argument
1454 proxy_conn_rec *conn; local
1488 proxy_conn_rec *conn = (proxy_conn_rec *)resource; local
1934 void *conn; local
2170 ap_proxy_acquire_connection(const char *proxy_function, proxy_conn_rec **conn, proxy_worker *worker, server_rec *s) argument
2221 ap_proxy_release_connection(const char *proxy_function, proxy_conn_rec *conn, server_rec *s) argument
2234 ap_proxy_determine_connection(apr_pool_t *p, request_rec *r, proxy_server_conf *conf, proxy_worker *worker, proxy_conn_rec *conn, apr_uri_t *uri, char **url, const char *proxyname, apr_port_t proxyport, char *server_portstr, int server_portstr_size) argument
2695 ap_proxy_connect_backend(const char *proxy_function, proxy_conn_rec *conn, proxy_worker *worker, server_rec *s) argument
2940 proxy_conn_rec *conn = (proxy_conn_rec *)theconn; local
2965 ap_proxy_connection_create(const char *proxy_function, proxy_conn_rec *conn, conn_rec *c, server_rec *s) argument
[all...]
H A Dmod_proxy_fcgi.c137 static apr_status_t send_data(proxy_conn_rec *conn, argument
145 apr_socket_t *s = conn->sock;
175 conn->worker->s->transferred += written;
182 static apr_status_t get_data(proxy_conn_rec *conn, argument
186 apr_status_t rv = apr_socket_recv(conn->sock, buffer, buflen);
189 conn->worker->s->read += *buflen;
195 static apr_status_t get_data_full(proxy_conn_rec *conn, argument
205 rv = get_data(conn, buffer + cumulative_len, &readlen);
215 static apr_status_t send_begin_request(proxy_conn_rec *conn, argument
229 ap_proxy_connection_reusable(conn)
243 send_environment(proxy_conn_rec *conn, request_rec *r, apr_pool_t *temp_pool, apr_uint16_t request_id) argument
428 dispatch(proxy_conn_rec *conn, proxy_dir_conf *conf, request_rec *r, apr_pool_t *setaside_pool, apr_uint16_t request_id, const char **err, int *bad_request, int *has_responded) argument
793 fcgi_do_request(apr_pool_t *p, request_rec *r, proxy_conn_rec *conn, conn_rec *origin, proxy_dir_conf *conf, apr_uri_t *uri, char *url, char *server_portstr) argument
[all...]
H A Dmod_proxy_scgi.c228 static int sendall(proxy_conn_rec *conn, const char *buf, apr_size_t length, argument
236 if ((rv = apr_socket_send(conn->sock, buf, &written)) != APR_SUCCESS) {
239 conn->hostname, conn->port);
244 conn->worker->s->transferred += written;
256 static int send_headers(request_rec *r, proxy_conn_rec *conn) argument
325 return sendall(conn, buf, headerlen, r);
332 static int send_request_body(request_rec *r, proxy_conn_rec *conn) argument
341 status = sendall(conn, buf, readlen, r);
361 static int pass_response(request_rec *r, proxy_conn_rec *conn) argument
[all...]
H A Dmod_proxy_wstunnel.c48 proxy_conn_rec *conn = baton->proxy_connrec; local
49 apr_socket_t *sock = conn->sock;
50 conn_rec *backconn = conn->connection;
117 "error on client conn");
123 "unknown event on client conn %d", pollevent);
149 baton->proxy_connrec->close = 1; /* new handshake expected on each back-conn */
331 proxy_conn_rec *conn,
341 apr_socket_t *sock = conn->sock;
342 conn_rec *backconn = conn->connection;
359 rv = ap_proxy_create_hdrbrgd(p, header_brigade, r, conn,
330 proxy_wstunnel_request(apr_pool_t *p, request_rec *r, proxy_conn_rec *conn, proxy_worker *worker, proxy_server_conf *conf, apr_uri_t *uri, char *url, char *server_portstr, char *scheme) argument
[all...]
H A Dmod_proxy.h270 proxy_conn_rec *conn; /* Single connection for prefork mpm */ member in struct:proxy_conn_pool
588 PROXY_DECLARE(apr_status_t) ap_proxy_ssl_connection_cleanup(proxy_conn_rec *conn,
831 * @param conn proxy connection struct
844 proxy_conn_rec *conn,
867 * @param conn acquired connection
876 proxy_conn_rec **conn,
882 * @param conn acquired connection
885 * @note The connection will be closed if conn->close_on_release is set
888 proxy_conn_rec *conn,
893 * @param conn acquire
937 PROXY_DECLARE(int) ap_proxy_connection_reusable(proxy_conn_rec *conn); variable
[all...]
H A Dmod_serf.c107 static void closed_connection(serf_connection_t *conn, argument
411 serf_connection_t *conn; local
562 conn = serf_connection_create(serfme, address,
568 serf_connection_request_create(conn, setup_request, baton);
H A Dmod_proxy_ftp.c956 int ftp_proxyerror(request_rec *r, proxy_conn_rec *conn, int statuscode, const char *message) argument
958 proxy_ftp_cleanup(r, conn);
/httpd/modules/debugging/
H A Dmod_firehose.c92 firehose_conn_t *conn; member in struct:firehose_ctx_t
140 rv = apr_file_write_full(ctx->conn->file, header, hdr_len, NULL);
142 if (ctx->conn->suppress) {
152 (apr_uint64_t)(hdr_len), ctx->conn->filename, ctx->conn->direction, ctx->uuid, ctx->count);
161 (apr_uint64_t)(hdr_len), ctx->conn->filename, ctx->conn->direction, ctx->uuid, ctx->count);
163 ctx->conn->suppress = 1;
166 ctx->conn->suppress = 0;
222 rv = apr_file_writev_full(ctx->conn
415 firehose_conn_t *conn; local
466 firehose_conn_t *conn; local
[all...]
/httpd/modules/experimental/
H A Dmod_noloris.c58 static int noloris_conn(conn_rec *conn) argument
60 struct { int child_num; int thread_num; } *sbh = conn->sbh;
70 if (!strcmp(shm_rec, conn->client_ip)) {
71 apr_socket_t *csd = ap_get_conn_socket(conn);
72 ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, conn, APLOGNO(02059)
74 conn->client_ip);
84 ap_update_child_status_from_conn(conn->sbh, SERVER_READY, conn);
/httpd/modules/ssl/
H A Dmod_ssl.h127 APR_DECLARE_OPTIONAL_FN(int, modssl_register_npn, (conn_rec *conn,
168 (conn_rec *conn,
H A Dssl_engine_kernel.c47 struct conn_rec *conn = r->connection; local
56 bb = apr_brigade_create(r->pool, conn->bucket_alloc);
58 rv = ap_fputs(conn->output_filters, bb, SWITCH_STATUS_LINE CRLF
62 apr_bucket_flush_create(conn->bucket_alloc));
63 rv = ap_pass_brigade(conn->output_filters, bb);
73 ssl_init_ssl_connection(conn, r);
75 sslconn = myConnConfig(conn);
1387 conn_rec *conn = (conn_rec *)SSL_get_app_data(ssl); local
1389 server_rec *s = r ? r->server : mySrvFromConn(conn);
1393 SSLConnRec *sslconn = myConnConfig(conn);
1686 conn_rec *conn = (conn_rec *)SSL_get_app_data(ssl); local
1739 conn_rec *conn = (conn_rec *)SSL_get_app_data(ssl); local
[all...]
H A Dssl_util_stapling.c392 conn_rec *conn = (conn_rec *)SSL_get_app_data(ssl); local
438 apr_pool_create(&vpool, conn->pool);
460 req, conn, vpool);
592 conn_rec *conn = (conn_rec *)SSL_get_app_data(ssl); local
593 server_rec *s = mySrvFromConn(conn);
595 SSLConnRec *sslconn = myConnConfig(conn);
622 rv = stapling_get_cached_response(s, &rsp, &ok, cinf, conn->pool);
662 rv = stapling_renew_response(s, mctx, ssl, cinf, &rsp, conn->pool);
/httpd/modules/arch/netware/
H A Dlibprews.c40 int (*readRoutineP)( int conn, void *fileHandle, size_t offset,
32 _NonAppStart( void *NLMHandle, void *errorScreen, const char *cmdLine, const char *loadDirPath, size_t uninitializedDataLength, void *NLMFileHandle, int (*readRoutineP)( int conn, void *fileHandle, size_t offset, size_t nbytes, size_t *bytesRead, void *buffer ), size_t customDataOffset, size_t customDataSize, int messageCount, const char **messages ) argument
/httpd/os/netware/
H A Dutil_nw.c79 int (*readRoutineP)( int conn, void *fileHandle, size_t offset,
71 _NonAppStart( void *NLMHandle, void *errorScreen, const char *cmdLine, const char *loadDirPath, size_t uninitializedDataLength, void *NLMFileHandle, int (*readRoutineP)( int conn, void *fileHandle, size_t offset, size_t nbytes, size_t *bytesRead, void *buffer ), size_t customDataOffset, size_t customDataSize, int messageCount, const char **messages ) argument
/httpd/server/
H A Dvhost.c1195 AP_DECLARE(int) ap_vhost_iterate_given_conn(conn_rec *conn, argument
1205 if (conn->vhost_lookup_data) {
1207 port = conn->local_addr->port;
1209 for (src = conn->vhost_lookup_data; src; src = src->next) {
1229 rv = func_cb(baton, conn, s);
1237 rv = func_cb(baton, conn, conn->base_server);
1244 * new connection is assumed to have conn->server == main server.
1246 AP_DECLARE(void) ap_update_vhost_given_ip(conn_rec *conn) argument
1252 trav = find_ipaddr(conn
[all...]
H A Dprotocol.c991 request_rec *ap_read_request(conn_rec *conn) argument
1002 apr_pool_create(&p, conn->pool);
1005 AP_READ_REQUEST_ENTRY((intptr_t)r, (uintptr_t)conn);
1007 r->connection = conn;
1008 r->server = conn->base_server;
1026 r->proto_output_filters = conn->output_filters;
1028 r->proto_input_filters = conn->input_filters;
1046 r->useragent_addr = conn->client_addr;
1047 r->useragent_ip = conn->client_ip;
1051 ap_run_pre_read_request(r, conn);
[all...]
H A Dcore.c869 static APR_INLINE void do_double_reverse (conn_rec *conn) argument
874 if (conn->double_reverse) {
879 if (conn->remote_host == NULL || conn->remote_host[0] == '\0') {
881 conn->double_reverse = -1;
885 rv = apr_sockaddr_info_get(&sa, conn->remote_host, APR_UNSPEC, 0, 0, conn->pool);
888 if (apr_sockaddr_equal(sa, conn->client_addr)) {
889 conn->double_reverse = 1;
897 conn
900 ap_get_remote_host(conn_rec *conn, void *dir_config, int type, int *str_is_ip) argument
1005 conn_rec *conn = r->connection; local
[all...]
/httpd/modules/http/
H A Dhttp_protocol.c204 const char *conn = apr_table_get(r->headers_in, "Connection"); local
253 && !ap_find_token(r->pool, conn, "close")
256 && ((ka_sent = ap_find_token(r->pool, conn, "keep-alive"))

Completed in 810 milliseconds