git: udp: Don't propagate connect error, as long as the inpcb has local port.

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Mon Nov 21 19:02:02 PST 2016


commit 219503cf61ebf0aa6c01e49f6b073f0a40e0f1ec
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Tue Nov 22 10:57:13 2016 +0800

    udp: Don't propagate connect error, as long as the inpcb has local port.
    
    This fixes the UDP socket disconnect->[read/write] support; before this
    fix, the immediate read/write after disconnect will get EAFNOTSUPPORT.

Summary of changes:
 sys/netinet/udp_usrreq.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/219503cf61ebf0aa6c01e49f6b073f0a40e0f1ec


-- 
DragonFly BSD source repository



More information about the Commits mailing list