summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-request.c
diff options
context:
space:
mode:
authorGravatar snowdrop2005-12-19 14:06:15 +0000
committerGravatar snowdrop2005-12-19 14:06:15 +0000
commit84693bb5f792e6d6accd1ad2e81fe6baeb4f4ea1 (patch)
tree34d1f68d2d887770e8a67fe5d65e82ec2cdfebe3 /nanohttp/nanohttp-request.c
parent7fe73dd2cd46d43b97bd8766849f2dffabb6a2d4 (diff)
downloadcsoap-84693bb5f792e6d6accd1ad2e81fe6baeb4f4ea1.tar.gz
csoap-84693bb5f792e6d6accd1ad2e81fe6baeb4f4ea1.tar.bz2
integrated with ssl (https) capability
Diffstat (limited to 'nanohttp/nanohttp-request.c')
-rwxr-xr-xnanohttp/nanohttp-request.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nanohttp/nanohttp-request.c b/nanohttp/nanohttp-request.c
index 6597c10..9f4fb8b 100755
--- a/nanohttp/nanohttp-request.c
+++ b/nanohttp/nanohttp-request.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: nanohttp-request.c,v 1.5 2005/05/27 19:28:15 snowdrop Exp $
+* $Id: nanohttp-request.c,v 1.6 2005/12/19 14:06:16 snowdrop Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -228,13 +228,16 @@ hrequest_new_from_socket(hsocket_t sock, hrequest_t **out)
char buffer[MAX_HEADER_SIZE+1];
attachments_t *mimeMessage;
+ memset(buffer, 0, MAX_HEADER_SIZE);
/* Read header */
while (i<MAX_HEADER_SIZE)
{
status = hsocket_read(sock, &(buffer[i]), 1, 1, &readed);
if (status != H_OK)
{
- log_error1("Socket read error");
+ if(herror_code(status) != HSOCKET_SSL_CLOSE){
+ log_error1("Socket read error");
+ }
return status;
}