summaryrefslogtreecommitdiffstats
path: root/nanohttp
diff options
context:
space:
mode:
authorGravatar snowdrop2004-10-18 11:43:06 +0000
committerGravatar snowdrop2004-10-18 11:43:06 +0000
commit69bc2627a1cd365583190f7da0cbb0d8ee40b3bd (patch)
treed359e2c71fff163b1e8f82fc6e19f7dc21cdff7c /nanohttp
parent1f7fec810c2a39f061e7dad804440709a6c55fbc (diff)
downloadcsoap-69bc2627a1cd365583190f7da0cbb0d8ee40b3bd.tar.gz
csoap-69bc2627a1cd365583190f7da0cbb0d8ee40b3bd.tar.bz2
hsocket_close() debug
Diffstat (limited to 'nanohttp')
-rw-r--r--nanohttp/nanohttp-socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nanohttp/nanohttp-socket.c b/nanohttp/nanohttp-socket.c
index a8fff76..f31bf08 100644
--- a/nanohttp/nanohttp-socket.c
+++ b/nanohttp/nanohttp-socket.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: nanohttp-socket.c,v 1.27 2004/10/18 11:42:00 snowdrop Exp $
+* $Id: nanohttp-socket.c,v 1.28 2004/10/18 11:43:06 snowdrop Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -307,12 +307,12 @@ hsocket_close (hsocket_t sock)
while (recv(sock, junk, sizeof(junk), 0)>0) { };
closesocket(sock);
- log_verbose1 ("closed");
#else
shutdown(sock, 1);
while (recv(sock, junk, sizeof(junk), 0)>0) { };
close (sock);
#endif
+ log_verbose1 ("closed");
}
/*--------------------------------------------------