gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r567 - GNUnet/src/transports


From: grothoff
Subject: [GNUnet-SVN] r567 - GNUnet/src/transports
Date: Fri, 1 Apr 2005 22:08:47 -0800 (PST)

Author: grothoff
Date: 2005-04-01 22:08:43 -0800 (Fri, 01 Apr 2005)
New Revision: 567

Modified:
   GNUnet/src/transports/tcp.c
Log:
msg

Modified: GNUnet/src/transports/tcp.c
===================================================================
--- GNUnet/src/transports/tcp.c 2005-04-02 06:05:12 UTC (rev 566)
+++ GNUnet/src/transports/tcp.c 2005-04-02 06:08:43 UTC (rev 567)
@@ -729,7 +729,11 @@
          gnunet_util_sleep(20);
          goto try_again_1;
         }
-
+#if DEBUG_TCP
+       LOG(LOG_DEBUG,
+           "TCP: transmitted %u bytes %u bytes\n",
+           ret);
+#endif
        if (ret == 0) {
           /* send only returns 0 on error (other side closed connection),
           * so close the session */
@@ -842,6 +846,11 @@
   }
   if (success == NO)
     ret = 0;
+#if DEBUG_TCP
+  LOG(LOG_DEBUG,
+      "TCP: transmitted %u bytes\n",
+      ret);
+#endif
 
   if (ret < ssize) {/* partial send */
     if (tcpSession->wsize < ssize - ret) {
@@ -905,6 +914,7 @@
     GROW(tcpSession->wbuff,
         tcpSession->wsize,
         tcpSession->wpos + ssize);
+    tcpSession->wpos += ssize;
     memcpy(&tcpSession->wbuff[old],
           mp,
           ssize);





reply via email to

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