mod_proxy_connect.c revision ad7e5e9fb8f63a5155bb392114162997505ff772
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther/* Licensed to the Apache Software Foundation (ASF) under one or more
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther * contributor license agreements. See the NOTICE file distributed with
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther * this work for additional information regarding copyright ownership.
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther * The ASF licenses this file to You under the Apache License, Version 2.0
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther * (the "License"); you may not use this file except in compliance with
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther * the License. You may obtain a copy of the License at
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther * http://www.apache.org/licenses/LICENSE-2.0
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther * Unless required by applicable law or agreed to in writing, software
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther * distributed under the License is distributed on an "AS IS" BASIS,
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther * See the License for the specific language governing permissions and
#include "mod_proxy.h"
#include "apr_poll.h"
return DECLINED;
return OK;
int rv;
#ifdef DEBUGGING
#ifdef DEBUGGING
name);
name);
return rv;
const char *connectname;
int connectport = 0;
return DECLINED;
NULL));
if (proxyname) {
r->pool);
if (failed) {
if (proxyname) {
return DECLINED;
return HTTP_SERVICE_UNAVAILABLE;
return HTTP_INTERNAL_SERVER_ERROR;
if (!backconn) {
return HTTP_INTERNAL_SERVER_ERROR;
return HTTP_INTERNAL_SERVER_ERROR;
if (proxyport) {
ap_rflush(r);
return HTTP_INTERNAL_SERVER_ERROR;
#ifdef DEBUGGING
#ifdef DEBUGGING
#ifdef DEBUGGING
return OK;