diff options
author | snowdrop | 2005-12-19 14:10:40 +0000 |
---|---|---|
committer | snowdrop | 2005-12-19 14:10:40 +0000 |
commit | 99a176eedc568df17240abdb0abad9b0931b791e (patch) | |
tree | e2e9e1e9187d50876fafda6bf4b3618f32dac87e | |
parent | 417f74936648d087bccbf7df6e7905e1ab2d8169 (diff) | |
download | csoap-99a176eedc568df17240abdb0abad9b0931b791e.tar.gz csoap-99a176eedc568df17240abdb0abad9b0931b791e.tar.bz2 |
shutdown(sock.sock, SHUT_RDWR)
-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); } |