Hi all,
I have been doing some testing with the ftp proxy, but I've run into a
problem with the proxy hanging when reading from the control connection.
After the proxy has made a connection to the remote ftp server, the
remote server returns a status line, which is read by ftp_getrc_msg().
Inside this function the proxy is hanging at the point marked. A sniff
on the interface reveals the status line "220 ProFTPD 1.2.0pre10 Server
(ProFTPD) [jessica]" was sent, but Apache is not reading it properly.
bb = apr_brigade_create(c->pool);
/* Tell http_filter to grab the data one line at a time. */
c->remain = 0;
ap_get_brigade(c->input_filters, bb, AP_MODE_BLOCKING);
213:>>> e = APR_BRIGADE_FIRST(bb);
apr_bucket_read(e, (const char **)&response, &len,
APR_BLOCK_READ);
This code is cut-and-pasted from the proxy_http.c section that handles
the status line from the remote proxy - it works great there, but not
here.
My sockets experience is rusty, and I am still very green when it comes
to filters - can anyone explain to me what I am doing wrong?
Regards,
Graham
--
-----------------------------------------
[EMAIL PROTECTED] "There's a moon
over Bourbon Street
tonight..."