Lines Matching defs:newsock
2089 PROXY_DECLARE(int) ap_proxy_connect_to_backend(apr_socket_t **newsock,
2101 if ((rv = apr_socket_create(newsock, backend_addr->family,
2117 (rv = apr_socket_opt_set(*newsock, APR_SO_RCVBUF,
2124 rv = apr_socket_opt_set(*newsock, APR_TCP_NODELAY, 1);
2133 apr_socket_timeout_set(*newsock, conf->timeout);
2136 apr_socket_timeout_set(*newsock, r->server->timeout);
2144 rv = apr_socket_bind(*newsock, conf->source_address);
2153 rv = apr_socket_connect(*newsock, backend_addr);
2157 apr_socket_close(*newsock);
2706 apr_socket_t *newsock;
2723 rv = apr_socket_create(&newsock, AF_UNIX, SOCK_STREAM, 0,
2736 rv = ap_proxy_connect_uds(newsock, conn->uds_path, conn->scpool);
2738 apr_socket_close(newsock);
2758 if ((rv = apr_socket_create(&newsock, backend_addr->family,
2779 (rv = apr_socket_opt_set(newsock, APR_SO_RCVBUF,
2786 rv = apr_socket_opt_set(newsock, APR_TCP_NODELAY, 1);
2795 apr_socket_timeout_set(newsock, worker->s->conn_timeout);
2798 apr_socket_timeout_set(newsock, worker->s->timeout);
2801 apr_socket_timeout_set(newsock, conf->timeout);
2804 apr_socket_timeout_set(newsock, s->timeout);
2808 if ((rv = apr_socket_opt_set(newsock,
2823 rv = apr_socket_bind(newsock, local_addr);
2832 rv = apr_socket_connect(newsock, backend_addr);
2836 apr_socket_close(newsock);
2856 apr_socket_timeout_set(newsock, worker->s->timeout);
2859 apr_socket_timeout_set(newsock, conf->timeout);
2862 apr_socket_timeout_set(newsock, s->timeout);
2865 conn->sock = newsock;
2878 apr_socket_close(newsock);