orlikowski 01/06/28 10:49:56
Modified: module-2.0 proxy_ftp.c
Log:
proxy_ftp.c
Revision Changes Path
1.62 +9 -2 httpd-proxy/module-2.0/proxy_ftp.c
Index: proxy_ftp.c
===================================================================
RCS file: /home/cvs/httpd-proxy/module-2.0/proxy_ftp.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- proxy_ftp.c 2001/06/28 10:00:07 1.61
+++ proxy_ftp.c 2001/06/28 17:49:54 1.62
@@ -1591,10 +1591,11 @@
ap_pass_brigade(r->output_filters, bb);
apr_brigade_cleanup(bb);
}
+ ap_flush_conn(remote);
+ apr_socket_close(remote_sock);
apr_brigade_cleanup(bb);
ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
"proxy: FTP: end body send");
-
}
else {
@@ -1637,7 +1638,13 @@
ap_pass_brigade(origin->output_filters, bb);
ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
"proxy: FTP: QUIT");
-
+ /* responses: 221, 500 */
+ /* 221 Service closing control connection. */
+ /* 500 Syntax error, command unrecognized. */
+ i = ftp_getrc_msg(origin, cbb, buffer, sizeof(buffer));
+ ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
+ "proxy: FTP: %d %s", i, buffer);
+ apr_socket_close(sock);
apr_brigade_destroy(bb);
return OK;
}
|