On 16 January 2018 at 22:49, Guus Sliepen <[email protected]> wrote: > 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().
Good catch. Sent https://github.com/gsliepen/tinc/pull/169 your way. _______________________________________________ tinc mailing list [email protected] https://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc
