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);



_______________________________________________
GNUnet-SVN mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnunet-svn

Reply via email to