Author: tuexen
Date: Thu May 16 09:18:59 2019
New Revision: 347672
URL: https://svnweb.freebsd.org/changeset/base/347672

Log:
  MFC r345460:
  
  Limit the number of bytes which can be queued for SCTP sockets.
  This is joint work with rrs@.

Modified:
  stable/11/sys/netinet/sctp_output.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet/sctp_output.c
==============================================================================
--- stable/11/sys/netinet/sctp_output.c Thu May 16 09:16:47 2019        
(r347671)
+++ stable/11/sys/netinet/sctp_output.c Thu May 16 09:18:59 2019        
(r347672)
@@ -13016,12 +13016,7 @@ sctp_lower_sosend(struct socket *so,
        /* Calculate the maximum we can send */
        inqueue_bytes = stcb->asoc.total_output_queue_size - 
(stcb->asoc.chunks_on_out_queue * SCTP_DATA_CHUNK_OVERHEAD(stcb));
        if (SCTP_SB_LIMIT_SND(so) > inqueue_bytes) {
-               if (non_blocking) {
-                       /* we already checked for non-blocking above. */
-                       max_len = sndlen;
-               } else {
-                       max_len = SCTP_SB_LIMIT_SND(so) - inqueue_bytes;
-               }
+               max_len = SCTP_SB_LIMIT_SND(so) - inqueue_bytes;
        } else {
                max_len = 0;
        }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to