Lines Matching refs:debug
258 static void gw_proc_connect_success(gw_host *host, gw_proc *proc, int debug, request_st * const r) { in gw_proc_connect_success() argument
262 if (debug) { in gw_proc_connect_success()
270 …nnect_error(request_st * const r, gw_host *host, gw_proc *proc, pid_t pid, int errnum, int debug) { in gw_proc_connect_error() argument
301 if (debug) { 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
337 if (debug) { in gw_proc_release()
489 …pawn_connection(gw_host * const host, gw_proc * const proc, log_error_st * const errh, int debug) { in gw_spawn_connection() argument
493 if (debug) { in gw_spawn_connection()
650 if (debug) { 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
695 } else if (gw_spawn_connection(host, proc, errh, debug)) { in gw_proc_spawn()
812 static gw_host * gw_host_get(request_st * const r, gw_extension *extension, int balance, int debug)… in gw_host_get() argument
834 if (debug) { in gw_host_get()
903 if (debug) { in gw_host_get()
922 if (debug) { in gw_host_get()
932 if (debug) { in gw_host_get()
946 gw_proc_spawn(host, r->con->srv->errh, debug); in gw_host_get()
969 …h_connection(request_st * const r, gw_host *host, gw_proc *proc, pid_t pid, int gw_fd, int debug) { in gw_establish_connection() argument
974 if (debug > 2) { in gw_establish_connection()
982 gw_proc_connect_error(r, host, proc, pid, errnum, debug); in gw_establish_connection()
987 if (debug > 1) { 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
1039 if (debug) { in gw_restart_dead_proc()
1047 if (gw_spawn_connection(host, proc, errh, debug)) { 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
1060 if (debug > 2) { in gw_restart_dead_procs()
1066 gw_restart_dead_proc(host, errh, debug, trigger, proc); in gw_restart_dead_procs()
1623 if (s->debug) { in gw_set_defaults_backend()
1641 if (s->debug) { in gw_set_defaults_backend()
1658 && gw_spawn_connection(host, proc, srv->errh, s->debug)) { in gw_set_defaults_backend()
1812 gw_proc_release(hctx->host, hctx->proc, hctx->conf.debug, in gw_backend_close()
1837 hctx->host = gw_host_get(r,hctx->ext,hctx->conf.balance,hctx->conf.debug); in gw_reconnect()
1950 hctx->fd, hctx->conf.debug)) { in gw_write_request()
1969 socket_error, hctx->conf.debug); in gw_write_request()
1976 gw_proc_connect_success(hctx->host, hctx->proc, hctx->conf.debug, r); in gw_write_request()
2009 if (hctx->conf.debug > 1) { in gw_write_request()
2110 gw_restart_dead_procs(hctx->host,srv->errh,hctx->conf.debug,0); in gw_write_error()
2363 if (hctx->conf.debug) { in gw_recv_response_error()
2369 if (gw_spawn_connection(host, proc, errh, hctx->conf.debug)) { in gw_recv_response_error()
2568 host = gw_host_get(r, extension, p->conf.balance, p->conf.debug); in gw_check_extension()
2654 hctx->conf.debug = p->conf.debug; in gw_check_extension()
2691 ETIMEDOUT, hctx->conf.debug); 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
2774 gw_restart_dead_procs(host, errh, debug, 1); in gw_handle_trigger_host()
2789 if (debug) { in gw_handle_trigger_host()
2794 gw_proc_spawn(host, errh, debug); in gw_handle_trigger_host()
2805 if (debug) { 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()
2858 int debug = global_debug; in gw_handle_trigger() local
2865 debug = (int)cpv->v.u; in gw_handle_trigger()
2880 : gw_handle_trigger_exts(conf->exts, errh, debug); in gw_handle_trigger()
2898 int debug = global_debug; in gw_handle_waitpid_cb() local
2905 debug = (int)cpv->v.u; in gw_handle_waitpid_cb()
2938 if (gw_spawn_connection(host, proc, errh, debug)) { in gw_handle_waitpid_cb()