]> git.meshlink.io Git - utcp/commitdiff
Log when we start retransmission.
authorGuus Sliepen <guus@meshlink.io>
Sun, 18 Oct 2015 18:31:34 +0000 (20:31 +0200)
committerGuus Sliepen <guus@sliepen.org>
Sun, 2 Jul 2017 10:04:08 +0000 (12:04 +0200)
utcp.c

diff --git a/utcp.c b/utcp.c
index 5427c3e3798ef2fa470c1f89942bde3bdb480912..c21d6ab664b0146030c44d60e6feb730e924f0d8 100644 (file)
--- a/utcp.c
+++ b/utcp.c
@@ -1321,6 +1321,7 @@ struct timeval utcp_timeout(struct utcp *utcp) {
                if(!c)
                        continue;
 
+               // delete connections that have been utcp_close()d.
                if(c->state == CLOSED) {
                        if(c->reapable) {
                                debug("Reaping %p\n", c);
@@ -1339,6 +1340,7 @@ struct timeval utcp_timeout(struct utcp *utcp) {
                }
 
                if(timerisset(&c->rtrx_timeout) && timercmp(&c->rtrx_timeout, &now, <)) {
+                       debug("retransmit()\n");
                        retransmit(c);
                }