Apply patch from Scott Lamb adding an output buffer for the TCP sockets.
[oweals/tinc.git] / src / protocol.c
index b4e14b0da6813143d106cf7a131d511dfd3b25e0..de7f8b8760cb0bb96c40888b892d67c12f106b7e 100644 (file)
@@ -241,7 +241,7 @@ void age_past_requests(void)
                next = node->next;
                p = node->data;
 
-               if(p->firstseen + pingtimeout < now)
+               if(p->firstseen + pinginterval < now)
                        avl_delete_node(past_request_tree, node), deleted++;
                else
                        left++;