]> git.meshlink.io Git - utcp/commitdiff
Remove unconditional debug messages.
authorGuus Sliepen <guus@meshlink.io>
Fri, 5 Dec 2014 21:14:31 +0000 (22:14 +0100)
committerGuus Sliepen <guus@meshlink.io>
Fri, 5 Dec 2014 21:14:31 +0000 (22:14 +0100)
utcp.c

diff --git a/utcp.c b/utcp.c
index f46cdf7f649f0ee4ef77b0c8ebe0a673d5f24af0..f5484ab82b92e53e5365f7de75a822881218a7f4 100644 (file)
--- a/utcp.c
+++ b/utcp.c
@@ -486,7 +486,6 @@ static void retransmit(struct utcp_connection *c) {
                        pkt->hdr.ack = c->rcv.nxt;
                        pkt->hdr.ctl = ACK;
                        uint32_t len = seqdiff(c->snd.nxt, c->snd.una);
-                       fprintf(stderr, "retransmit %u %u %u\n", pkt->hdr.seq, pkt->hdr.ack, len);
                        if(c->state == FIN_WAIT_1)
                                len--;
                        if(len > utcp->mtu)
@@ -782,7 +781,6 @@ ssize_t utcp_recv(struct utcp *utcp, const void *data, size_t len) {
                        c->dupack++;
                        if(c->dupack == 3) {
                                debug("Triplicate ACK\n");
-                               fprintf(stderr, "Triplicate ACK\n");
                                //TODO: Resend one packet and go to fast recovery mode. See RFC 6582.
                                //We do a very simple variant here; reset the nxt pointer to the last acknowledged packet from the peer.
                                //This will cause us to start retransmitting, but at the same speed as the incoming ACKs arrive,