diff options
author | snowdrop | 2005-07-27 07:45:40 +0000 |
---|---|---|
committer | snowdrop | 2005-07-27 07:45:40 +0000 |
commit | d7c4593ff2b4c55fdc33676e20ecafff1c87e62c (patch) | |
tree | 6dd78a36c5d1b60fd21803b8ece6e1cf6eb967c0 /nanohttp/nanohttp-client.h | |
parent | 8761f387a1a6079081d4db85d7716609efb2e242 (diff) | |
download | csoap-d7c4593ff2b4c55fdc33676e20ecafff1c87e62c.tar.gz csoap-d7c4593ff2b4c55fdc33676e20ecafff1c87e62c.tar.bz2 |
Changes of Menzo
nanohttp/nanohttp-client.c and nanohttp/nanohttp-client.h
added httpc_close_free, a variant of httpc_free which
explicitly asks to close the socket.
Otherwise after a number of client/server interactions we get
socket error 24 (Too many open files).
libcsoap/soap-client.c
call httpc_close_free instead of httpc_free
nanohttp/nanohttp-socket.c
in hsocket_close call shutdown with SHUT_RDWR instead of 1
(SHUT_WR). Otherwise after a
number of client/server interactions the shutdown call doesn't
return anymore.
Diffstat (limited to 'nanohttp/nanohttp-client.h')
-rw-r--r-- | nanohttp/nanohttp-client.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nanohttp/nanohttp-client.h b/nanohttp/nanohttp-client.h index 06c0fcd..020f7e3 100644 --- a/nanohttp/nanohttp-client.h +++ b/nanohttp/nanohttp-client.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-client.h,v 1.14 2004/11/02 23:09:26 snowdrop Exp $ + * $Id: nanohttp-client.h,v 1.15 2005/07/27 07:45:57 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -71,6 +71,11 @@ void httpc_destroy(); httpc_conn_t* httpc_new(); /** + Close and release a connection +*/ +void httpc_close_free(httpc_conn_t* conn); + +/** Release a connections */ void httpc_free(httpc_conn_t* conn); |