axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r575249 - /webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c
Date Thu, 13 Sep 2007 10:01:39 GMT
Author: samisa
Date: Thu Sep 13 03:01:38 2007
New Revision: 575249

URL: http://svn.apache.org/viewvc?rev=575249&view=rev
Log:
Used macros for hard coded values, also made sure that already set values are not overriden

Modified:
    webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c

Modified: webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c?rev=575249&r1=575248&r2=575249&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c Thu Sep
13 03:01:38 2007
@@ -38,7 +38,17 @@
 #include <axis2_msg.h>
 
 #define AXIOM_MIME_BOUNDARY_BYTE 45
-#define FILE_READ_SIZE 2048
+
+/** Size of the buffer to be used when reading a file */
+#ifndef AXIS2_FILE_READ_SIZE
+#define AXIS2_FILE_READ_SIZE 2048
+#endif
+
+/** Content length value to be used in case of chunked content  */
+#ifndef AXIS2_CHUNKED_CONTENT_LENGTH
+#define AXIS2_CHUNKED_CONTENT_LENGTH 100000000
+#endif
+
 const axis2_char_t * AXIS2_TRANS_UTIL_DEFAULT_CHAR_ENCODING =  AXIS2_HTTP_HEADER_DEFAULT_CHAR_ENCODING;
 
 /***************************** Function headers *******************************/
@@ -266,7 +276,7 @@
                 and also gives out a content lenght of 0.
                 We need to fix the transport design to fix sutuations like this.
                 */
-            callback_ctx->content_length = 100000000;
+            callback_ctx->content_length = AXIS2_CHUNKED_CONTENT_LENGTH;
             callback_ctx->unread_len = callback_ctx->content_length;
         }
     }
@@ -911,7 +921,7 @@
         FILE *wsdl_file;
         axis2_char_t *content = NULL;
         int c;
-        int size = FILE_READ_SIZE;
+        int size = AXIS2_FILE_READ_SIZE;
         axis2_char_t *tmp;
         int i = 0;
         



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message