summaryrefslogtreecommitdiffstats
path: root/src/core/transport/http/sender/ssl
diff options
context:
space:
mode:
authorGravatar nandika2010-11-23 03:14:32 +0000
committerGravatar nandika2010-11-23 03:14:32 +0000
commitfa3891cd6d6487df7302dbe8ee152251909adef3 (patch)
tree29d321436ff2107bf7be016bf8ebe3c63df91fe0 /src/core/transport/http/sender/ssl
parentcb1322e8b220a4691e85ccb3aa9c1795291ec047 (diff)
downloadaxis2c-fa3891cd6d6487df7302dbe8ee152251909adef3.tar.gz
axis2c-fa3891cd6d6487df7302dbe8ee152251909adef3.tar.bz2
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
Diffstat (limited to 'src/core/transport/http/sender/ssl')
-rw-r--r--src/core/transport/http/sender/ssl/ssl_stream.c1
1 files changed, 1 insertions, 0 deletions
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;