Lines Matching refs:errh
263 log_error(r->conf.errh, __FILE__, __LINE__, in gw_proc_connect_success()
272 log_error_st * const errh = r->conf.errh; in gw_proc_connect_error() local
274 log_perror(errh, __FILE__, __LINE__, in gw_proc_connect_error()
290 log_error(errh, __FILE__, __LINE__, in gw_proc_connect_error()
297 log_error(errh, __FILE__, __LINE__, in gw_proc_connect_error()
302 log_error(errh, __FILE__, __LINE__, in gw_proc_connect_error()
334 static void gw_proc_release(gw_host *host, gw_proc *proc, int debug, log_error_st *errh) { in gw_proc_release() argument
338 log_error(errh, __FILE__, __LINE__, in gw_proc_release()
345 … void gw_proc_check_enable(gw_host * const host, gw_proc * const proc, log_error_st * const errh) { in gw_proc_check_enable() argument
351 log_error(errh, __FILE__, __LINE__, in gw_proc_check_enable()
359 …st gw_host * const host, const gw_proc * const proc, log_error_st * const errh, const int status) { in gw_proc_waitpid_log() argument
362 log_error(errh, __FILE__, __LINE__, in gw_proc_waitpid_log()
369 log_error(errh, __FILE__, __LINE__, in gw_proc_waitpid_log()
373 log_error(errh, __FILE__, __LINE__, in gw_proc_waitpid_log()
378 static int gw_proc_waitpid(gw_host *host, gw_proc *proc, log_error_st *errh) { in gw_proc_waitpid() argument
391 log_perror(errh, __FILE__, __LINE__, in gw_proc_waitpid()
395 gw_proc_waitpid_log(host, proc, errh, status); in gw_proc_waitpid()
406 … int gw_proc_sockaddr_init(gw_host * const host, gw_proc * const proc, log_error_st * const errh) { in gw_proc_sockaddr_init() argument
412 AF_UNIX, 0, errh)) { in gw_proc_sockaddr_init()
427 0, proc->port, errh)) { in gw_proc_sockaddr_init()
489 …pawn_connection(gw_host * const host, gw_proc * const proc, log_error_st * const errh, int debug) { in gw_spawn_connection() argument
494 log_error(errh, __FILE__, __LINE__, in gw_spawn_connection()
501 log_perror(errh, __FILE__, __LINE__, "socket()"); in gw_spawn_connection()
510 log_perror(errh, __FILE__, __LINE__, in gw_spawn_connection()
525 log_perror(errh, __FILE__, __LINE__, "socket()"); in gw_spawn_connection()
530 log_perror(errh, __FILE__, __LINE__, "socketsockopt()"); in gw_spawn_connection()
537 log_perror(errh, __FILE__, __LINE__, in gw_spawn_connection()
544 log_perror(errh, __FILE__, __LINE__, "listen()"); in gw_spawn_connection()
605 log_perror(errh, __FILE__, __LINE__, in gw_spawn_connection()
621 log_error(errh, __FILE__, __LINE__, in gw_spawn_connection()
636 if (0 != gw_proc_waitpid(host, proc, errh)) { in gw_spawn_connection()
637 log_error(errh, __FILE__, __LINE__, in gw_spawn_connection()
639 log_error(errh, __FILE__, __LINE__, in gw_spawn_connection()
651 log_error(errh, __FILE__, __LINE__, in gw_spawn_connection()
662 static void gw_proc_spawn(gw_host * const host, log_error_st * const errh, const int debug) { in gw_proc_spawn() argument
688 if (0 != gw_proc_sockaddr_init(host, proc, errh)) { in gw_proc_spawn()
691 log_error(errh, __FILE__, __LINE__, in gw_proc_spawn()
695 } else if (gw_spawn_connection(host, proc, errh, debug)) { in gw_proc_spawn()
696 log_error(errh, __FILE__, __LINE__, in gw_proc_spawn()
835 log_error(r->conf.errh, __FILE__, __LINE__, in gw_host_get()
904 log_error(r->conf.errh, __FILE__, __LINE__, in gw_host_get()
923 log_error(r->conf.errh, __FILE__, __LINE__, in gw_host_get()
934 log_error(r->conf.errh, __FILE__, __LINE__, in gw_host_get()
946 gw_proc_spawn(host, r->con->srv->errh, debug); in gw_host_get()
960 log_error(r->conf.errh, __FILE__, __LINE__, in gw_host_get()
975 log_error(r->conf.errh, __FILE__, __LINE__, in gw_establish_connection()
988 log_error(r->conf.errh, __FILE__, __LINE__, in gw_establish_connection()
997 static void gw_restart_dead_proc(gw_host * const host, log_error_st * const errh, const int debug, … in gw_restart_dead_proc() argument
1002 gw_proc_check_enable(host, proc, errh); in gw_restart_dead_proc()
1018 if (0 == gw_proc_waitpid(host, proc, errh)) { in gw_restart_dead_proc()
1019 gw_proc_check_enable(host, proc, errh); in gw_restart_dead_proc()
1040 log_error(errh, __FILE__, __LINE__, in gw_restart_dead_proc()
1047 if (gw_spawn_connection(host, proc, errh, debug)) { in gw_restart_dead_proc()
1048 log_error(errh, __FILE__, __LINE__, in gw_restart_dead_proc()
1052 gw_proc_check_enable(host, proc, errh); in gw_restart_dead_proc()
1058 static void gw_restart_dead_procs(gw_host * const host, log_error_st * const errh, const int debug,… in gw_restart_dead_procs() argument
1061 log_error(errh, __FILE__, __LINE__, in gw_restart_dead_procs()
1066 gw_restart_dead_proc(host, errh, debug, trigger, proc); in gw_restart_dead_procs()
1342 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1410 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1466 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1473 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1502 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1509 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1526 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1537 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1553 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1583 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1616 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1624 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1642 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1652 if (0 != gw_proc_sockaddr_init(host, proc, srv->errh)) { in gw_set_defaults_backend()
1658 && gw_spawn_connection(host, proc, srv->errh, s->debug)) { in gw_set_defaults_backend()
1659 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1674 log_error(srv->errh, __FILE__, __LINE__, in gw_set_defaults_backend()
1693 if (0 != gw_proc_sockaddr_init(host, proc, srv->errh)) goto error; in gw_set_defaults_backend()
1748 log_error(srv->errh, __FILE__, __LINE__, in gw_get_defaults_balance()
1813 r->conf.errh); in gw_backend_close()
1896 &r->reqbody_queue, qlen, r->conf.errh)) in gw_write_refill_wb()
1933 log_perror(r->conf.errh, __FILE__, __LINE__, in gw_write_request()
2007 log_error_st * const errh = r->conf.errh; in gw_write_request() local
2010 log_error(errh, __FILE__, __LINE__, "sdsx", in gw_write_request()
2017 MAX_WRITE_LIMIT, errh) < 0) { in gw_write_request()
2026 log_error(errh, __FILE__, __LINE__, in gw_write_request()
2034 log_perror(errh, __FILE__, __LINE__, "write failed"); in gw_write_request()
2078 log_error(r->conf.errh, __FILE__, __LINE__, in gw_write_request()
2110 gw_restart_dead_procs(hctx->host,srv->errh,hctx->conf.debug,0); in gw_write_error()
2283 log_error(r->conf.errh, __FILE__, __LINE__, in gw_authorizer_ok()
2360 log_error_st * const errh = r->con->srv->errh; in gw_recv_response_error() local
2362 && 0 != gw_proc_waitpid(host, proc, errh)) { in gw_recv_response_error()
2364 log_error(errh, __FILE__, __LINE__, in gw_recv_response_error()
2369 if (gw_spawn_connection(host, proc, errh, hctx->conf.debug)) { in gw_recv_response_error()
2370 log_error(errh, __FILE__, __LINE__, in gw_recv_response_error()
2380 log_error(r->conf.errh, __FILE__, __LINE__, in gw_recv_response_error()
2389 log_error(r->conf.errh, __FILE__, __LINE__, in gw_recv_response_error()
2396 log_error(r->conf.errh, __FILE__, __LINE__, in gw_recv_response_error()
2445 log_error(r->conf.errh, __FILE__, __LINE__, in gw_process_fdevent()
2455 log_error(r->conf.errh, __FILE__, __LINE__, in gw_process_fdevent()
2674 log_error(r->conf.errh, __FILE__, __LINE__, in gw_check_extension()
2708 log_error(r->conf.errh, __FILE__, __LINE__, in gw_handle_trigger_hctx_timeout()
2757 static void gw_handle_trigger_host(gw_host * const host, log_error_st * const errh, const int debug… in gw_handle_trigger_host() argument
2770 gw_proc_waitpid(host, proc, errh); in gw_handle_trigger_host()
2774 gw_restart_dead_procs(host, errh, debug, 1); in gw_handle_trigger_host()
2790 log_error(errh, __FILE__, __LINE__, in gw_handle_trigger_host()
2794 gw_proc_spawn(host, errh, debug); in gw_handle_trigger_host()
2806 log_error(errh, __FILE__, __LINE__, in gw_handle_trigger_host()
2819 gw_proc_waitpid(host, proc, errh); in gw_handle_trigger_host()
2824 static void gw_handle_trigger_exts(gw_exts * const exts, log_error_st * const errh, const int debug… in gw_handle_trigger_exts() argument
2828 gw_handle_trigger_host(ex->hosts[n], errh, debug); in gw_handle_trigger_exts()
2833 static void gw_handle_trigger_exts_wkr(gw_exts *exts, log_error_st *errh) { in gw_handle_trigger_exts_wkr() argument
2841 gw_proc_check_enable(host, proc, errh); in gw_handle_trigger_exts_wkr()
2850 log_error_st * const errh = srv->errh; in gw_handle_trigger() local
2879 ? gw_handle_trigger_exts_wkr(conf->exts, errh) in gw_handle_trigger()
2880 : gw_handle_trigger_exts(conf->exts, errh, debug); in gw_handle_trigger()
2890 log_error_st * const errh = srv->errh; in gw_handle_waitpid_cb() local
2928 gw_proc_waitpid_log(host, proc, errh, status); in gw_handle_waitpid_cb()
2938 if (gw_spawn_connection(host, proc, errh, debug)) { in gw_handle_waitpid_cb()
2939 log_error(errh, __FILE__, __LINE__, in gw_handle_waitpid_cb()
2949 gw_proc_waitpid_log(host, proc, errh, status); in gw_handle_waitpid_cb()