On Tue, Jan 16, 2018 at 03:00:03PM -0700, Todd C. Miller wrote: > Thanks for the info, that is very helpful. It does look like that > change got back-ported to master, albeit in a different form.
Hm, there's indeed some differences between the two versions, even apart
from the fact that one uses a thread and the other the event system. It
seems that in write_packet(), tinc 1.0 does a ResetEvent() if a
WriteFile() succeeded immediately, but 1.1 doesn't. Also, in tinc 1.1,
for reads, ResetEvent() is called right before GetOverlappedResult(),
and that looks very suspicious... with tinc 1.0 it is called right
before ReadFile().
Overlapped IO feels alien to me.
--
Met vriendelijke groet / with kind regards,
Guus Sliepen <[email protected]>
signature.asc
Description: PGP signature
_______________________________________________ tinc mailing list [email protected] https://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc
