[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5568 - GNUnet/src/transports
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5568 - GNUnet/src/transports |
Date: |
Wed, 29 Aug 2007 19:25:58 -0600 (MDT) |
Author: grothoff
Date: 2007-08-29 19:25:57 -0600 (Wed, 29 Aug 2007)
New Revision: 5568
Modified:
GNUnet/src/transports/http.c
Log:
fix
Modified: GNUnet/src/transports/http.c
===================================================================
--- GNUnet/src/transports/http.c 2007-08-30 01:20:29 UTC (rev 5567)
+++ GNUnet/src/transports/http.c 2007-08-30 01:25:57 UTC (rev 5568)
@@ -209,11 +209,6 @@
struct MUTEX *lock;
/**
- * Last time this connection was used
- */
- cron_t lastUse;
-
- /**
* To whom are we talking to (set to our identity
* if we are still waiting for the welcome message)
*/
@@ -792,8 +787,8 @@
session->cs.server.wpos -= max;
session->cs.server.woff += max;
now = get_time ();
- session->lastUse = now;
- session->cs.server.last_get_activity = now;
+ if (max > 0)
+ session->cs.server.last_get_activity = now;
if (session->cs.server.wpos == 0)
session->cs.server.woff = 0;
MUTEX_UNLOCK (session->lock);
@@ -896,7 +891,6 @@
addTSession (tsession);
}
MUTEX_LOCK (httpSession->lock);
- httpSession->lastUse = get_time ();
#if DO_GET
if (0 == strcasecmp (MHD_HTTP_METHOD_GET, method))
{
@@ -1259,7 +1253,6 @@
httpSession->sender = hello->senderIdentity;
httpSession->lock = MUTEX_CREATE (YES);
httpSession->users = 1; /* us only, core has not seen this tsession! */
- httpSession->lastUse = get_time ();
httpSession->is_client = YES;
httpSession->cs.client.address = *haddr;
tsession = MALLOC (sizeof (TSession));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5568 - GNUnet/src/transports,
gnunet <=