diff options
Diffstat (limited to 'nanohttp')
-rw-r--r-- | nanohttp/nanohttp-socket.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nanohttp/nanohttp-socket.c b/nanohttp/nanohttp-socket.c index 5213b11..06ab8a2 100644 --- a/nanohttp/nanohttp-socket.c +++ b/nanohttp/nanohttp-socket.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-socket.c,v 1.35 2005/12/19 14:06:16 snowdrop Exp $ +* $Id: nanohttp-socket.c,v 1.36 2005/12/19 14:10:40 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -363,11 +363,11 @@ hsocket_close (hsocket_t sock) if( sock.ssl ){ log_verbose1("Closing SSL"); ssl_cleanup(sock.ssl); - shutdown(sock.sock, 1); + shutdown(sock.sock, SHUT_RDWR); while (recv(sock.sock, junk, sizeof(junk), 0)>0) { }; close (sock.sock); }else { - shutdown(sock.sock, 1); + shutdown(sock.sock, SHUT_RDWR); while (recv(sock.sock, junk, sizeof(junk), 0)>0) { }; close (sock.sock); } |