git: socket: Properly inherit AUTOLOWAT and AUTOSIZE from listen socket

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Nov 15 18:27:21 PST 2011


commit 15d2bc79d633c676c76b686e21fa33036b5ebe69
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Nov 16 10:23:04 2011 +0800

    socket: Properly inherit AUTOLOWAT and AUTOSIZE from listen socket
    
    The soreserve and pru_attach could set these two flags internally,
    so the original code will only retain those two flags but not clear
    them if the listen socket does not have them.  We now explicitly
    check those two flags and then set or clear them accordingly.

Summary of changes:
 sys/kern/uipc_socket2.c |   25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/15d2bc79d633c676c76b686e21fa33036b5ebe69


-- 
DragonFly BSD source repository





More information about the Commits mailing list