From fa3891cd6d6487df7302dbe8ee152251909adef3 Mon Sep 17 00:00:00 2001 From: nandika Date: Tue, 23 Nov 2010 03:14:32 +0000 Subject: ssl_stream.c SSL_set_mode(stream_impl->ssl, SSL_MODE_AUTO_RETRY); added before read operation to fix the premature close error git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1037985 13f79535-47bb-0310-9956-ffa450edef68 --- src/core/transport/http/sender/ssl/ssl_stream.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/transport/http/sender/ssl') diff --git a/src/core/transport/http/sender/ssl/ssl_stream.c b/src/core/transport/http/sender/ssl/ssl_stream.c index 0900487..eb9ee45 100644 --- a/src/core/transport/http/sender/ssl/ssl_stream.c +++ b/src/core/transport/http/sender/ssl/ssl_stream.c @@ -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; -- cgit v1.1-32-gdbae