summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'nanohttp/nanohttp-socket.c')
-rw-r--r--nanohttp/nanohttp-socket.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/nanohttp/nanohttp-socket.c b/nanohttp/nanohttp-socket.c
index 82d7280..e437df7 100644
--- a/nanohttp/nanohttp-socket.c
+++ b/nanohttp/nanohttp-socket.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: nanohttp-socket.c,v 1.23 2004/10/15 13:29:37 snowdrop Exp $
+* $Id: nanohttp-socket.c,v 1.24 2004/10/15 15:10:37 snowdrop Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -266,7 +266,15 @@ hsocket_close (hsocket_t sock)
closesocket (sock);
*/
#else
- close (sock);
+ /*
+ struct linger _linger;
+ hsocket_block(sock,1);
+ _linger.l_onoff =1;
+ _linger.l_linger = 30000;
+ setsockopt(sock, SOL_SOCKET, SO_LINGER, (const char*)&_linger, sizeof(struct linger));
+
+
+ close (sock);*/
#endif
}