MantisBT - VCMI
View Issue Details
0003027VCMIOtherpublic2018-12-04 15:262018-12-04 15:26
SXX 
SXX 
highblockalways
assignedopen 
0.99 
 
0003027: Network fail on FreeBSD due to 2MB socket buffer limit while 4MB is used
So I cheated little bit with socket buffer size to be able to sent whole game state over network in one go. I set limit to 4MB which work fine on all Linux, Windows and macOS, but unfortunately FreeBSD have default limit of 2MB buffer on kernel level.

[pre]
     SO_SNDBUF and SO_RCVBUF are options to adjust the normal buffer sizes allocated for output and input buffers,
     respectively. The buffer size may be increased for high-volume connections, or may be decreased to limit the
     possible backlog of incoming data. The system places an absolute maximum on these values, which is accessible
     through the sysctl(3) MIB variable ``kern.ipc.maxsockbuf''.
[/pre]

So this need to be solved one way or another. For now I can decrease limit to 2MB, but then we really need to improve networking to handle sending large amount of serialized data.
No tags attached.
Issue History
2018-12-04 15:26SXXNew Issue
2018-12-04 15:26SXXStatusnew => assigned
2018-12-04 15:26SXXAssigned To => SXX

There are no notes attached to this issue.