| 5359 | } |
| 5360 | |
| 5361 | AP_DECLARE(int) ap_pre_connection(conn_rec *c, void *csd) |
| 5362 | { |
| 5363 | int rc = OK; |
| 5364 | |
| 5365 | rc = ap_run_pre_connection(c, csd); |
| 5366 | if (rc != OK && rc != DONE) { |
| 5367 | c->aborted = 1; |
| 5368 | /* |
| 5369 | * In case we errored, the pre_connection hook of the core |
| 5370 | * module maybe did not run (it is APR_HOOK_REALLY_LAST) and |
| 5371 | * hence we missed to |
| 5372 | * |
| 5373 | * - Put the socket in c->conn_config |
| 5374 | * - Setup core output and input filters |
| 5375 | * - Set socket options and timeouts |
| 5376 | * |
| 5377 | * Hence call it in this case. |
| 5378 | */ |
| 5379 | if (!ap_get_conn_socket(c)) { |
| 5380 | core_pre_connection(c, csd); |
| 5381 | } |
| 5382 | } |
| 5383 | return rc; |
| 5384 | } |
| 5385 | |
| 5386 | AP_DECLARE(int) ap_state_query(int query) |
| 5387 | { |
no test coverage detected