svn commit: r347672 - stable/11/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Thu May 16 09:19:00 UTC 2019
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 at .
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;
}
More information about the svn-src-all
mailing list