Lines Matching refs:unixsocket
139 if (!host->unixsocket) { in gw_proc_init_portpath()
144 if (!proc->unixsocket) in gw_proc_init_portpath()
145 proc->unixsocket = buffer_init(); in gw_proc_init_portpath()
148 buffer_copy_buffer(proc->unixsocket, host->unixsocket); in gw_proc_init_portpath()
150 buffer_clear(proc->unixsocket); in gw_proc_init_portpath()
151 buffer_append_str2(proc->unixsocket, BUF_PTR_LEN(host->unixsocket), in gw_proc_init_portpath()
153 buffer_append_int(proc->unixsocket, proc->id); in gw_proc_init_portpath()
184 buffer_free(proc->unixsocket); in gw_proc_free()
355 host->unixsocket ? host->unixsocket->ptr : ""); in gw_proc_check_enable()
410 if (proc->unixsocket) { in gw_proc_sockaddr_init()
411 if (1 != sock_addr_from_str_hints(&addr,&addrlen,proc->unixsocket->ptr, in gw_proc_sockaddr_init()
419 BUF_PTR_LEN(proc->unixsocket)); in gw_proc_sockaddr_init()
496 proc->port, proc->unixsocket ? proc->unixsocket->ptr : ""); in gw_spawn_connection()
509 if (-1 == status && errno != ENOENT && proc->unixsocket) { in gw_spawn_connection()
511 "connect %s", proc->unixsocket->ptr); in gw_spawn_connection()
512 unlink(proc->unixsocket->ptr); in gw_spawn_connection()
732 static gw_host * unixsocket_is_dup(gw_plugin_data *p, const buffer *unixsocket) { in unixsocket_is_dup() argument
755 if (host->unixsocket in unixsocket_is_dup()
756 && buffer_is_equal(host->unixsocket, unixsocket) in unixsocket_is_dup()
973 || (errnum == EAGAIN && host->unixsocket)) { in gw_establish_connection()
1165 if (proc->is_local && proc->unixsocket) { in gw_plugin_config_free()
1166 unlink(proc->unixsocket->ptr); in gw_plugin_config_free()
1174 if (proc->is_local && proc->unixsocket) { in gw_plugin_config_free()
1175 unlink(proc->unixsocket->ptr); in gw_plugin_config_free()
1387 host->unixsocket = cpv->v.b; in gw_set_defaults_backend()
1508 if ((host->host || host->port) && host->unixsocket) { in gw_set_defaults_backend()
1517 if (host->host && *host->host->ptr == '/' && !host->unixsocket) { in gw_set_defaults_backend()
1518 host->unixsocket = host->host; in gw_set_defaults_backend()
1521 if (host->unixsocket) { in gw_set_defaults_backend()
1525 if (buffer_clen(host->unixsocket) + 1 > sizeof(un.sun_path) - 2) { in gw_set_defaults_backend()
1534 gw_host *duplicate = unixsocket_is_dup(p, host->unixsocket); in gw_set_defaults_backend()
1539 host->unixsocket->ptr); in gw_set_defaults_backend()
1633 host->unixsocket ? host->unixsocket->ptr : "", in gw_set_defaults_backend()
1648 host->unixsocket ? host->unixsocket->ptr : "", in gw_set_defaults_backend()
1697 const buffer * const h = host->host ? host->host : host->unixsocket; in gw_set_defaults_backend()
2808 proc->unixsocket ? proc->unixsocket->ptr : "", proc->pid); in gw_handle_trigger_host()