MCPcopy Create free account
hub / github.com/apache/httpd / process_socket

Function process_socket

server/mpm/worker/worker.c:477–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475 */
476
477static void process_socket(apr_thread_t *thd, apr_pool_t *p, apr_socket_t *sock,
478 int my_child_num,
479 int my_thread_num, apr_bucket_alloc_t *bucket_alloc)
480{
481 conn_rec *current_conn;
482 long conn_id = ID_FROM_CHILD_THREAD(my_child_num, my_thread_num);
483 ap_sb_handle_t *sbh;
484
485 ap_create_sb_handle(&sbh, p, my_child_num, my_thread_num);
486
487 current_conn = ap_run_create_connection(p, ap_server_conf, sock,
488 conn_id, sbh, bucket_alloc);
489 if (current_conn) {
490 current_conn->current_thread = thd;
491 ap_process_connection(current_conn, sock);
492 ap_lingering_close(current_conn);
493 }
494}
495
496/* requests_this_child has gone to zero or below. See if the admin coded
497 "MaxConnectionsPerChild 0", and keep going in that case. Doing it this way

Callers 1

worker_threadFunction · 0.70

Calls 3

ap_create_sb_handleFunction · 0.85
ap_process_connectionFunction · 0.85
ap_lingering_closeFunction · 0.85

Tested by

no test coverage detected