You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-commits@axis.apache.org by na...@apache.org on 2010/11/23 04:14:33 UTC
svn commit: r1037985 -
/axis/axis2/c/core/trunk/src/core/transport/http/sender/ssl/ssl_stream.c
Author: nandika
Date: Tue Nov 23 03:14:32 2010
New Revision: 1037985
URL: http://svn.apache.org/viewvc?rev=1037985&view=rev
Log:
ssl_stream.c SSL_set_mode(stream_impl->ssl, SSL_MODE_AUTO_RETRY); added before read operation to fix the premature close error
Modified:
axis/axis2/c/core/trunk/src/core/transport/http/sender/ssl/ssl_stream.c
Modified: axis/axis2/c/core/trunk/src/core/transport/http/sender/ssl/ssl_stream.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/src/core/transport/http/sender/ssl/ssl_stream.c?rev=1037985&r1=1037984&r2=1037985&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/src/core/transport/http/sender/ssl/ssl_stream.c (original)
+++ axis/axis2/c/core/trunk/src/core/transport/http/sender/ssl/ssl_stream.c Tue Nov 23 03:14:32 2010
@@ -207,6 +207,7 @@ axis2_ssl_stream_skip(
AXIS2_HANDLE_ERROR(env, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return -1;
}
+ SSL_set_mode(stream_impl->ssl, SSL_MODE_AUTO_RETRY);
len = SSL_read(stream_impl->ssl, tmp_buffer, count);
AXIS2_FREE(env->allocator, tmp_buffer);
return len;