[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1095 - GNUnet/src/server
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1095 - GNUnet/src/server |
Date: |
Mon, 27 Jun 2005 07:52:08 -0700 (PDT) |
Author: grothoff
Date: 2005-06-27 07:52:05 -0700 (Mon, 27 Jun 2005)
New Revision: 1095
Modified:
GNUnet/src/server/connection.c
Log:
fix
Modified: GNUnet/src/server/connection.c
===================================================================
--- GNUnet/src/server/connection.c 2005-06-27 14:48:12 UTC (rev 1094)
+++ GNUnet/src/server/connection.c 2005-06-27 14:52:05 UTC (rev 1095)
@@ -337,7 +337,9 @@
SESSIONKEY skey_remote;
/** at which time was the remote sessionkey created */
TIME_T skey_remote_created;
- /** is this host alive? timestamp of the time of the last-active point */
+ /** is this host alive? timestamp of the time of the last-active
+ point (as witnessed by some higher-level application, typically
+ topology+pingpong) */
cron_t isAlive;
/** Status of the connection (STAT_XXX) */
unsigned int status;
@@ -2005,8 +2007,6 @@
cronTime(&be->last_bps_update);
}
be->recently_received += size;
- if (be->status == STAT_UP)
- cronTime(&be->isAlive);
MUTEX_UNLOCK(&lock);
return YES;
}
@@ -2102,6 +2102,7 @@
MUTEX_LOCK(&lock);
be = lookForHost(peer);
if (be != NULL) {
+ cronTime(&be->isAlive);
if ( ( (be->status & STAT_SKEY_SENT) > 0) &&
( (be->status & STAT_SKEY_RECEIVED) > 0) ) {
if (be->session.tsession == NULL) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1095 - GNUnet/src/server,
grothoff <=