| 475 | */ |
| 476 | |
| 477 | static 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 |
no test coverage detected