const char *proxyhost, int proxyport)
{
struct in_addr destaddr;
- const char *host, *err;
+ const char *host;
char *p;
int port;
ap_socket_t *sock;
char buffer[HUGE_STRING_LEN];
- int nbytes, i, j;
+ int nbytes, i;
BUFF *sock_buff;
- ap_socket_t *client_sock;
+ ap_socket_t *client_sock=NULL;
ap_pollfd_t *pollfd;
ap_int32_t pollcnt;
ap_int16_t pollevent;
*/
int ap_proxy_ftp_handler(request_rec *r, ap_cache_el *c, char *url)
{
- char *host, *path, *strp, *parms, *server_addr;
+ char *host, *path, *strp, *parms;
char *cwd = NULL;
char *user = NULL;
/* char *account = NULL; how to supply an account in a URL? */
const char *password = NULL;
- const char *err;
ap_socket_t *sock, *dsock, *inc;
int port, i, j, len, rc, nocache = 0;
ap_socket_t *csd;
/* stuff for PASV mode */
unsigned int presult, h0, h1, h2, h3, p0, p1;
- unsigned int paddr;
unsigned short pport;
- struct sockaddr_in data_addr;
int pasvmode = 0;
char pasv[64];
char *pstr, dates[AP_RFC822_DATE_LEN];
{
const char *strp;
char *strp2;
- const char *err, *desthost;
+ const char *desthost;
ap_socket_t *sock;
- int i, j, len, backasswards, content_length=-1;
+ int i, len, backasswards, content_length=-1;
ap_array_header_t *reqhdrs_arr;
- ap_table_t *resp_hdrs;
+ ap_table_t *resp_hdrs=NULL;
ap_table_entry_t *reqhdrs;
struct sockaddr_in server;
struct in_addr destaddr;
- struct hostent server_hp;
BUFF *f, *cachefp=NULL;
char buffer[HUGE_STRING_LEN];
char portstr[32];
ap_bwrite(r->connection->client, buffer, len, &cntr);
if (cachefp && ap_bwrite(cachefp, buffer, len, &cntr) != len) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
- "proxy: error writing extra data to cache");
+ "proxy: error writing extra data to cache %ld",
+ (long)cachefp);
ap_proxy_cache_error(&c);
}
}
int ok;
char buf[IOBUFSIZE];
long total_bytes_rcvd, in_buffer;
- proxy_server_conf *conf = (proxy_server_conf *) ap_get_module_config(r->server->module_config, &proxy_module);
ap_ssize_t cntr;
- register int n, o, w;
+ register int n, o;
conn_rec *con = r->connection;
int alternate_timeouts = 1; /* 1 if we alternate between soft & hard timeouts */
BUFF *cachefp = NULL;