diff options
author | fcolin | 2005-06-13 11:19:43 +0000 |
---|---|---|
committer | fcolin | 2005-06-13 11:19:43 +0000 |
commit | ca6cbf19ecdc5c9d5c5fb6cef3ae411cffc71589 (patch) | |
tree | 2944c1c61a1e5906bff153f0d4072400c7b9e084 /src/ivy.c | |
parent | cd85fe1c186c823232795124c1ecd242462e191b (diff) | |
download | ivy-c-ca6cbf19ecdc5c9d5c5fb6cef3ae411cffc71589.zip ivy-c-ca6cbf19ecdc5c9d5c5fb6cef3ae411cffc71589.tar.gz ivy-c-ca6cbf19ecdc5c9d5c5fb6cef3ae411cffc71589.tar.bz2 ivy-c-ca6cbf19ecdc5c9d5c5fb6cef3ae411cffc71589.tar.xz |
Ajout keepalive sur les sockets
Diffstat (limited to 'src/ivy.c')
-rw-r--r-- | src/ivy.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -309,8 +309,7 @@ static int MsgCall (const char *message, MsgSndPtr msg, Client client) } -static int -ClientCall (IvyClientPtr clnt, const char *message) +static int ClientCall (IvyClientPtr clnt, const char *message) { MsgSndPtr msg; int match_count = 0; @@ -555,6 +554,7 @@ static IvyClientPtr SendService( Client client ) IVY_LIST_ADD( clients, clnt ) if ( clnt ) { + SocketKeepAlive ( client, 1 ); clnt->msg_send = 0; clnt->client = client; clnt->app_name = strdup("Unknown"); @@ -610,7 +610,6 @@ static void *ClientCreate( Client client ) SocketGetRemoteHost( client, &remotehost, &remoteport ); printf("Connexion de %s:%hu\n", remotehost, remoteport ); #endif //DEBUG - return SendService (client); } |