• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/apache-793/httpd/modules/proxy/

Lines Matching refs:backend

29                                           proxy_conn_rec *backend);
929 * If we plan to close the backend connection sent Connection: close
1103 "Headers received from backend:");
1253 proxy_conn_rec *backend = *backend_ptr;
1254 conn_rec *origin = backend->connection;
1271 apr_socket_timeout_get(backend->sock, &old_timeout);
1274 rc = apr_socket_timeout_set(backend->sock, worker->s->ping_timeout);
1286 backend->r = make_fake_req(origin, r);
1290 backend->r->proxyreq = PROXYREQ_RESPONSE;
1299 rc = ap_proxygetline(tmp_bb, buffer, sizeof(buffer), backend->r, 0, &len);
1302 rc = ap_proxygetline(tmp_bb, buffer, sizeof(buffer), backend->r, 0, &len);
1307 "server %s:%d", backend->hostname, backend->port);
1332 " reading from backend server %s:%d failed."
1333 " Number of keepalives %i", backend->hostname,
1334 backend->port, c->keepalives);
1359 /* Mark the backend connection for closing */
1360 backend->close = 1;
1367 " although reading from backend server %s:%d"
1369 backend->hostname, backend->port);
1375 backend->worker->s->read += len;
1420 "Status from backend: %d", proxy_status);
1432 ap_proxy_read_headers(r, backend->r, buffer, sizeof(buffer), origin,
1439 backend->close = 1;
1472 * and shut down the backend server connection
1479 backend->hostname, backend->port);
1480 backend->close = 1;
1490 backend->close = ap_proxy_clear_connection_fn(r, r->headers_out);
1496 ap_proxy_pre_http_request(origin, backend->r);
1536 backend->close = 1;
1544 backend->close = 1;
1553 apr_socket_timeout_set(backend->sock, old_timeout);
1562 * OTOH, an interim response here may mean the backend
1643 ap_discard_request_body(backend->r);
1659 backend->r->headers_in = apr_table_clone(backend->r->pool, r->headers_out);
1665 if (te && !apr_table_get(backend->r->headers_in, "Transfer-Encoding")) {
1666 apr_table_add(backend->r->headers_in, "Transfer-Encoding", te);
1697 rv = ap_get_brigade(backend->r->input_filters, bb,
1711 backend->close = 1;
1719 backend->close = 1;
1724 * our backend bailed on us. Pass along a 502 error
1732 backend->close = 1;
1739 backend->worker->s->read += readbytes;
1762 * data that lives only as long as the backend connection.
1778 /* make sure we release the backend connection as soon
1779 * as we know we are done, so that the backend isn't
1783 ap_proxy_release_connection(backend->worker->s->scheme,
1784 backend, r->server);
1785 /* Ensure that the backend is not reused */
1794 /* Only close backend if we haven't got all from the
1795 * backend. Furthermore if *backend_ptr is NULL it is no
1796 * longer safe to fiddle around with backend as it might
1800 backend->close = 1; /* this causes socket close below */
1816 /* make sure we release the backend connection as soon
1817 * as we know we are done, so that the backend isn't
1821 ap_proxy_release_connection(backend->worker->s->scheme,
1822 backend, r->server);
1856 proxy_conn_rec *backend)
1858 ap_proxy_release_connection(scheme, backend, r->server);
1881 proxy_conn_rec *backend = NULL;
1927 if ((status = ap_proxy_acquire_connection(proxy_function, &backend,
1932 backend->is_ssl = is_ssl;
1935 ap_proxy_ssl_connection_cleanup(backend, r);
1941 * with the client, do NOT reuse the connection to the backend, because
1948 backend->close = 1;
1955 if ((status = ap_proxy_determine_connection(p, r, conf, worker, backend,
1962 if (ap_proxy_connect_backend(proxy_function, backend, worker, r->server)) {
1964 "HTTP: failed to make connection to backend: %s",
1965 backend->hostname);
1971 if (!backend->connection) {
1972 if ((status = ap_proxy_connection_create(proxy_function, backend,
1987 * backend request URI.
1997 apr_table_set(backend->connection->notes, "proxy-request-hostname",
2006 if ((status = ap_proxy_http_request(p, r, backend, worker,
2009 backend->close = 1;
2022 status = ap_proxy_http_process_response(p, r, &backend, worker,
2030 if (backend) {
2032 backend->close = 1;
2033 ap_proxy_http_cleanup(proxy_function, r, backend);