gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r11510 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r11510 - gnunet/src/util
Date: Tue, 25 May 2010 18:04:21 +0200

Author: grothoff
Date: 2010-05-25 18:04:21 +0200 (Tue, 25 May 2010)
New Revision: 11510

Modified:
   gnunet/src/util/connection.c
Log:
fixing handling of transmit errors

Modified: gnunet/src/util/connection.c
===================================================================
--- gnunet/src/util/connection.c        2010-05-25 15:56:13 UTC (rev 11509)
+++ gnunet/src/util/connection.c        2010-05-25 16:04:21 UTC (rev 11510)
@@ -1352,6 +1352,14 @@
                    GNUNET_NETWORK_socket_close (sock->sock));
       sock->sock = NULL;
     }
+  if (sock->read_task != GNUNET_SCHEDULER_NO_TASK)
+    {
+      GNUNET_SCHEDULER_cancel (sock->sched,
+                              sock->read_task);
+      sock->read_task = GNUNET_SCHEDULER_NO_TASK;
+      signal_timeout (sock);
+      return;
+    }
   if (sock->nth.notify_ready == NULL)
     return;                     /* nobody to tell about it */
   notify = sock->nth.notify_ready;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]