You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ma...@apache.org on 2008/02/18 06:06:49 UTC
svn commit: r628618 - in /webservices/axis2/trunk/c/src/core/transport/http:
common/simple_http_svr_conn.c sender/http_client.c
util/http_transport_utils.c
Author: manjula
Date: Sun Feb 17 21:06:45 2008
New Revision: 628618
URL: http://svn.apache.org/viewvc?rev=628618&view=rev
Log:
changing the axis2_http_chunked_stream to axutil_http_chunked_stream.
Modified:
webservices/axis2/trunk/c/src/core/transport/http/common/simple_http_svr_conn.c
webservices/axis2/trunk/c/src/core/transport/http/sender/http_client.c
webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c
Modified: webservices/axis2/trunk/c/src/core/transport/http/common/simple_http_svr_conn.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/common/simple_http_svr_conn.c?rev=628618&r1=628617&r2=628618&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/common/simple_http_svr_conn.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/common/simple_http_svr_conn.c Sun Feb 17 21:06:45 2008
@@ -413,17 +413,17 @@
}
else
{
- axis2_http_chunked_stream_t *chunked_stream = NULL;
+ axutil_http_chunked_stream_t *chunked_stream = NULL;
int left = body_size;
- chunked_stream = axis2_http_chunked_stream_create(env,
+ chunked_stream = axutil_http_chunked_stream_create(env,
svr_conn->stream);
while (left > 0)
{
- left -= axis2_http_chunked_stream_write(chunked_stream, env,
+ left -= axutil_http_chunked_stream_write(chunked_stream, env,
response_body, body_size);
}
- axis2_http_chunked_stream_write_last_chunk(chunked_stream, env);
- axis2_http_chunked_stream_free(chunked_stream, env);
+ axutil_http_chunked_stream_write_last_chunk(chunked_stream, env);
+ axutil_http_chunked_stream_free(chunked_stream, env);
}
/*AXIS2_FREE(env->allocator, response_body); */
axis2_http_response_writer_free(response_writer, env);
Modified: webservices/axis2/trunk/c/src/core/transport/http/sender/http_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/sender/http_client.c?rev=628618&r1=628617&r2=628618&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/sender/http_client.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/sender/http_client.c Sun Feb 17 21:06:45 2008
@@ -356,8 +356,8 @@
}
else
{
- axis2_http_chunked_stream_t *chunked_stream = NULL;
- chunked_stream = axis2_http_chunked_stream_create(env,
+ axutil_http_chunked_stream_t *chunked_stream = NULL;
+ chunked_stream = axutil_http_chunked_stream_create(env,
client->
data_stream);
status = AXIS2_SUCCESS;
@@ -369,9 +369,9 @@
}
while (written < client->req_body_size)
{
- /*written = axis2_http_chunked_stream_write(chunked_stream, env,
+ /*written = axutil_http_chunked_stream_write(chunked_stream, env,
str_body, body_size); */
- written = axis2_http_chunked_stream_write(chunked_stream, env,
+ written = axutil_http_chunked_stream_write(chunked_stream, env,
client->req_body,
client->
req_body_size);
@@ -383,9 +383,9 @@
}
if (AXIS2_SUCCESS == status)
{
- axis2_http_chunked_stream_write_last_chunk(chunked_stream, env);
+ axutil_http_chunked_stream_write_last_chunk(chunked_stream, env);
}
- axis2_http_chunked_stream_free(chunked_stream, env);
+ axutil_http_chunked_stream_free(chunked_stream, env);
}
}
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=628618&r1=628617&r2=628618&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 Sun Feb 17 21:06:45 2008
@@ -282,7 +282,7 @@
AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED))
{
callback_ctx->chunked_stream =
- axis2_http_chunked_stream_create(env, in_stream);
+ axutil_http_chunked_stream_create(env, in_stream);
if (!callback_ctx->chunked_stream)
{
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error occured in"
@@ -644,7 +644,7 @@
AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED))
{
callback_ctx->chunked_stream =
- axis2_http_chunked_stream_create(env, in_stream);
+ axutil_http_chunked_stream_create(env, in_stream);
if (!callback_ctx->chunked_stream)
{
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error occured in"
@@ -1563,7 +1563,7 @@
{
--size;
/* reserve space to insert trailing null */
- len = axis2_http_chunked_stream_read(cb_ctx->chunked_stream, env,
+ len = axutil_http_chunked_stream_read(cb_ctx->chunked_stream, env,
buffer, size);
if (len >= 0)
{
@@ -1652,7 +1652,7 @@
if (trans_enc && 0 == axutil_strcmp(trans_enc,
AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED))
{
- callback_ctx->chunked_stream = axis2_http_chunked_stream_create(env,
+ callback_ctx->chunked_stream = axutil_http_chunked_stream_create(env,
in_stream);
if (!callback_ctx->chunked_stream)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org