tinc 1.1: missing PONG
Guus Sliepen
guus at tinc-vpn.org
Tue Feb 27 21:12:38 CET 2018
On Tue, Feb 27, 2018 at 09:26:15AM -0700, Todd C. Miller wrote:
> > I was thinking by setting a flag whenever we call io_del(), and checking
> > that flag in the for-loop in event_loop().
>
> So basically you would store a generation number in the tree that
> gets incremented by a call to io_del()? Or should the flag/number
> be changed each time the order of the tree changes?
Either would work.
> Unlike the POSIX event code, the Windows version calls splay_search()
> to map the event to an io_t. The call to splay_search() will splay
> the tree which changes the order the next time we go through the
> loop.
The splay will change the balance of the tree, but it will not change
the logical order of the elements. The splay_each() macro will traverse
the tree in order.
--
Met vriendelijke groet / with kind regards,
Guus Sliepen <guus at tinc-vpn.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20180227/6c2afda0/attachment.sig>
More information about the tinc-devel
mailing list