Skip to content

Commit

Permalink
set smaller buffer for OpenBSD and FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
nicboul committed Sep 24, 2016
1 parent 29c51e3 commit 4bed260
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ CUDT::CUDT()
m_iUDPSndBufSize = 65536;
#ifdef OSX
m_iUDPRcvBufSize = 3500000;
#elseif __OpenBSD__
m_iUDPRcvBufSize = 65536;
#elseif __FreeBSD__
m_iUDPRcvBufSize = 65536;
#else
m_iUDPRcvBufSize = m_iRcvBufSize * m_iMSS;
#endif
Expand Down

0 comments on commit 4bed260

Please sign in to comment.