]> git.meshlink.io Git - utcp/blobdiff - utcp.c
Log when we start retransmission.
[utcp] / 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);
                }