summaryrefslogtreecommitdiffstats
path: root/nanohttp
diff options
context:
space:
mode:
authorGravatar snowdrop2004-05-14 09:30:42 +0000
committerGravatar snowdrop2004-05-14 09:30:42 +0000
commite57af9d56cdcabd66dcdf60ae942a56cbd71b625 (patch)
tree454a346e6568c23b249f25759957244504369218 /nanohttp
parent44c6d0e5951dc65a05829b5532ad41141c8547e8 (diff)
downloadcsoap-e57af9d56cdcabd66dcdf60ae942a56cbd71b625.tar.gz
csoap-e57af9d56cdcabd66dcdf60ae942a56cbd71b625.tar.bz2
close the client side connection in httpc_receive_with_connection_closed() function
Diffstat (limited to 'nanohttp')
-rw-r--r--nanohttp/nanohttp-client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nanohttp/nanohttp-client.c b/nanohttp/nanohttp-client.c
index b55517a..411884c 100644
--- a/nanohttp/nanohttp-client.c
+++ b/nanohttp/nanohttp-client.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: nanohttp-client.c,v 1.10 2004/01/13 12:31:57 snowdrop Exp $
+ * $Id: nanohttp-client.c,v 1.11 2004/05/14 09:30:42 snowdrop Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -273,7 +273,8 @@ int httpc_receive_with_connection_closed(httpc_conn_t *conn,
status = hsocket_read(conn->sock, buffer, HSOCKET_MAX_BUFSIZE, 0);
- if (status == 0) { /* connection closed */
+ if (status == 0) { /* close connection */
+ close(conn->sock);
return 0;
}