git: tcp: Allow pure asynchronized pru_send

看板DFBSD_commit作者時間14年前 (2011/11/10 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit f2a3782e247aa32d0930dc0b99077f323e3815d7 Author: Sepherosa Ziehau <sephe@dragonflybsd.org> Date: Thu Nov 3 21:38:49 2011 +0800 tcp: Allow pure asynchronized pru_send - net.inet.tcp.sosnd_async is added to allow pure asynchronized pru_send. It is default to off currently. - To prevent soclose() and soshutdown() from interfering TCP processing on the loopback interface, so_pru_sync() is added, which will make sure that so_pru_disconnect() and so_pru_shutdown() run only after all of the previous sent packets had been requeued to netisr (the semantics of the original half asynchronized pru_send). Summary of changes: sys/kern/uipc_msg.c | 16 ++++++++++++++++ sys/kern/uipc_socket.c | 14 ++++++++++---- sys/netinet/tcp_input.c | 4 ++++ sys/sys/socketops.h | 1 + 4 files changed, 31 insertions(+), 4 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f2a3782e247aa32d0930dc0b99077f323e3815d7 -- DragonFly BSD source repository
文章代碼(AID): #1EkpVPom (DFBSD_commit)