From 7a59257f0ddc556cf3ce8e2823e8bd524c1cb9eb Mon Sep 17 00:00:00 2001 From: nandika Date: Wed, 9 Jun 2010 09:36:56 +0000 Subject: AXIOM_MIME_PARSER_END_OF_MIME_MAX_COUNT value increased to 1000 to allow 1000 attachments per request from previous 100. git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@952923 13f79535-47bb-0310-9956-ffa450edef68 --- axiom/include/axiom_mime_parser.h | 2 +- axiom/src/attachments/mime_parser.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'axiom') diff --git a/axiom/include/axiom_mime_parser.h b/axiom/include/axiom_mime_parser.h index b7f4f00..2c86383 100644 --- a/axiom/include/axiom_mime_parser.h +++ b/axiom/include/axiom_mime_parser.h @@ -41,7 +41,7 @@ extern "C" #define AXIOM_MIME_PARSER_BUFFER_SIZE (1024 * 1024/2) #define AXIOM_MIME_PARSER_MAX_BUFFERS 1000 -#define AXIOM_MIME_PARSER_END_OF_MIME_MAX_COUNT 100 +#define AXIOM_MIME_PARSER_END_OF_MIME_MAX_COUNT 1000 typedef struct axiom_mime_parser axiom_mime_parser_t; diff --git a/axiom/src/attachments/mime_parser.c b/axiom/src/attachments/mime_parser.c index 9da9c9f..4954d96 100644 --- a/axiom/src/attachments/mime_parser.c +++ b/axiom/src/attachments/mime_parser.c @@ -100,7 +100,7 @@ typedef struct axiom_search_info axiom_search_info_t; #define AXIOM_MIME_PARSER_CONTENT_ID "content-id" #define AXIOM_MIME_PARSER_CONTENT_TYPE "content-type" -#define AXIOM_MIME_PARSER_END_OF_MIME_MAX_COUNT 100 +#define AXIOM_MIME_PARSER_END_OF_MIME_MAX_COUNT 1000 static axis2_char_t * axiom_mime_parser_search_for_soap( @@ -725,7 +725,7 @@ axiom_mime_parser_parse_for_attachments( /* This loop will extract all the attachments in the message. The condition * with the count is needed because if the sender not marked the end of the - * attachment wiht -- then this loop may run infinitely. To prevent that + * attachment with -- then this loop may run infinitely. To prevent that * this additional condition has been put */ temp_mime_boundary = axutil_stracat(env, "--", mime_boundary); -- cgit v1.1-32-gdbae