You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2007/10/09 20:18:54 UTC
svn commit: r583254 - /httpd/mod_ftp/trunk/modules/ftp/ftp_protocol.c
Author: wrowe
Date: Tue Oct 9 11:18:54 2007
New Revision: 583254
URL: http://svn.apache.org/viewvc?rev=583254&view=rev
Log:
Declare that which is currently assigned in our httpd connection
creation logic, so that the two are much easier to compare.
(Note this is 95% identicial since null values == pcalloc() defaults,
but more intuitive for developers trying to follow the logic.)
Modified:
httpd/mod_ftp/trunk/modules/ftp/ftp_protocol.c
Modified: httpd/mod_ftp/trunk/modules/ftp/ftp_protocol.c
URL: http://svn.apache.org/viewvc/httpd/mod_ftp/trunk/modules/ftp/ftp_protocol.c?rev=583254&r1=583253&r2=583254&view=diff
==============================================================================
--- httpd/mod_ftp/trunk/modules/ftp/ftp_protocol.c (original)
+++ httpd/mod_ftp/trunk/modules/ftp/ftp_protocol.c Tue Oct 9 11:18:54 2007
@@ -465,10 +465,21 @@
r->per_dir_config = r->server->lookup_defaults;
- r->the_request = NULL;
+ r->sent_bodyct = 0; /* bytect isn't for body */
+
+ r->read_length = 0;
+ r->read_body = REQUEST_NO_BODY;
+
+ r->status = HTTP_REQUEST_TIME_OUT; /* Until we get a request */
+ r->the_request = NULL;
+
+ /* Begin by presuming any module can make its own path_info assumptions,
+ * until some module interjects and changes the value.
+ */
+ r->used_path_info = AP_REQ_DEFAULT_PATH_INFO;
+
r->protocol = "FTP";
r->method = NULL;
- r->read_length = 0;
/* We don't use r->uri for every request, but some modules (SSL)
* require r->uri to not be NULL in the post_read_request hook