]> granicus.if.org Git - apache/commitdiff
Get the messages returned from the FTP Server in order.
authorVictor J. Orlikowski <orlikowski@apache.org>
Thu, 28 Jun 2001 20:29:45 +0000 (20:29 +0000)
committerVictor J. Orlikowski <orlikowski@apache.org>
Thu, 28 Jun 2001 20:29:45 +0000 (20:29 +0000)
Otherwise we break RFC959.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89479 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_ftp.c

index 1b318b1f878ab3235ef3f65c241195778050a18d..dff676ff26e6a5f6439640f7fafb03d9d3f6c05c 100644 (file)
@@ -1593,6 +1593,11 @@ int ap_proxy_ftp_handler(request_rec *r, proxy_server_conf *conf,
        }
        ap_flush_conn(remote);
        apr_socket_close(remote_sock);
+       ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
+                    "proxy: FTP: Closing Data connection.");
+       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_brigade_cleanup(bb);
        ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
                     "proxy: FTP: end body send");