Author: tjansen Date: Mon Oct 19 13:28:00 2009 New Revision: 1231 Log: Fixed a bug where a client that closed a connection after a timeout would connect again, when a new packet arrived, but immediately disconnect because the timer was not reset for the timeout. Modified: trunk/pisacd/cdregister.c Modified: trunk/pisacd/cdregister.c ============================================================================== --- trunk/pisacd/cdregister.c Mon Oct 19 13:08:49 2009 (r1230) +++ trunk/pisacd/cdregister.c Mon Oct 19 13:28:00 2009 (r1231) @@ -154,6 +154,7 @@ cd_ctx.defaultroute = entry; } + time(&entry->timeout_client); inet_ntop(AF_INET6, &addr->sin6_addr, buffer, sizeof(buffer)); PISA_DEBUG(PL_REGISTER, "Connected to PISA server %s\n", buffer);