You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/09/11 11:32:28 UTC
svn commit: r442136 - in
/webservices/axis2/trunk/c/modules/core/transport/http/server/apache2:
apache2_stream.c apache2_worker.c
Author: samisa
Date: Mon Sep 11 02:32:27 2006
New Revision: 442136
URL: http://svn.apache.org/viewvc?view=rev&rev=442136
Log:
Replaced ap_rputs with ap_rwrite.
Fix for AXIS2C-275
Modified:
webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_stream.c
webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c
Modified: webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_stream.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_stream.c?view=diff&rev=442136&r1=442135&r2=442136
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_stream.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_stream.c Mon Sep 11 02:32:27 2006
@@ -177,14 +177,14 @@
}
memcpy(write_buf, buffer, count);
write_buf[count] = '\0';
- len = ap_rputs(write_buf, stream_impl->request);
+ len = ap_rwrite(write_buf, count, stream_impl->request);
AXIS2_FREE(env->allocator, write_buf);
return len;
}
else
{
write_buf = buffer;
- return ap_rputs(write_buf, stream_impl->request);
+ return ap_rwrite(write_buf, count - 1, stream_impl->request);
}
/* we shoudn't come here unless a serious problem*/
return -1;
Modified: webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c?view=diff&rev=442136&r1=442135&r2=442136
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c Mon Sep 11 02:32:27 2006
@@ -318,7 +318,7 @@
}
if(NULL != body_string)
{
- ap_rputs(body_string, request);
+ ap_rwrite(body_string, AXIS2_STRLEN(body_string), request);
AXIS2_FREE(env->allocator, body_string);
body_string = NULL;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org