mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-09 02:26:27 +00:00
sdp: Use the correct socket buffer in sdp_post_recvs_needed().
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
75b94efd08
commit
f66ec15275
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303511
@ -175,7 +175,7 @@ sdp_post_recvs_needed(struct sdp_sock *ssk)
|
||||
return 1;
|
||||
|
||||
buffer_size = ssk->recv_bytes;
|
||||
max_bytes = max(ssk->socket->so_snd.sb_hiwat,
|
||||
max_bytes = max(ssk->socket->so_rcv.sb_hiwat,
|
||||
(1 + SDP_MIN_TX_CREDITS) * buffer_size);
|
||||
max_bytes *= rcvbuf_scale;
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user