git: tcp: Allow pure asynchronized pru_send

Sepherosa Ziehau sephe at
Thu Nov 3 07:15:27 PDT 2011

commit f2a3782e247aa32d0930dc0b99077f323e3815d7
Author: Sepherosa Ziehau <sephe at>
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(-)

DragonFly BSD source repository

More information about the Commits mailing list