[Swan-commit] Changes to ref refs/heads/main

Andrew Cagney cagney at vault.libreswan.fi
Tue Jun 30 00:56:40 UTC 2020


New commits:
commit 39bd06f2fa31f89d6630d826179e24feea2795f9
Author: Andrew Cagney <cagney at gnu.org>
Date:   Mon Jun 29 20:48:10 2020 -0400

    testing: tweak TCP tests to match current debug output

commit 50a8fd3cb8e81f79d9fc8ed1787b1365907bde68
Author: Andrew Cagney <cagney at gnu.org>
Date:   Mon Jun 29 20:12:56 2020 -0400

    tcp: off-load closing the tcp port
    
    Instead of trying to delete the TCP event handler while in the TCP
    event handler, do it using a dedicated callback.
    
    - sending ff (aka keepalive) triggers two callbacks (an error then
      0-bytes aka EOF regardless of any attempt to delete the callback)
    
      Accept this and schedule a callback to run after the events have
      been drained.
    
    - because .st_interface references aren't counted, there's a race
      between the TCP code seeing a socket error and the TCP IKE SA being
      deleted
    
      Extend the IKETCP state machine to handle this case.
    
    This change is more conservative then making .st_interface reference
    count.



More information about the Swan-commit mailing list