git: socket: Properly inherit AUTOLOWAT and AUTOSIZE from listen

看板DFBSD_commit作者時間14年前 (2011/11/16 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 15d2bc79d633c676c76b686e21fa33036b5ebe69 Author: Sepherosa Ziehau <sephe@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
文章代碼(AID): #1Emo2c7E (DFBSD_commit)