You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From debugging my program I got to this very reduced and reproducible setup. in sample.c set the SendBufferLength to 10000000 and the MTU on the (loopback) interface to 1400. The Server crashes at this assert:
Am I understanding something wrong? Can the send buffer only be this big?
This answer suggest that I should be able to give in any number (potentially 1G), also after splitting the StreamSend like in the PerfTool I still get the same error. Where am I going wrong?
As Reference, here my custom ServerSend method, where size is just a replacement for SendBufferLength:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
From debugging my program I got to this very reduced and reproducible setup. in sample.c set the SendBufferLength to 10000000 and the MTU on the (loopback) interface to 1400. The Server crashes at this assert:
src/platform/datapath_epoll.c 2183: CXPLAT_DBG_ASSERT(SendData->TotalSize + MaxBufferLength <= sizeof(SendData->Buffer));
outputting these 3 values gives:
SendData->TotalSize: 64288
MaxBufferLength : 1312
sizeof(SendData->Buffer): 65535
meanwhile, when executing with an MTU of 1600, it works and the output of these values are:
SendData->TotalSize: 0
MaxBufferLength : 1200
sizeof(SendData->Buffer): 65535
Am I understanding something wrong? Can the send buffer only be this big?
This answer suggest that I should be able to give in any number (potentially 1G), also after splitting the StreamSend like in the PerfTool I still get the same error. Where am I going wrong?
As Reference, here my custom ServerSend method, where
size
is just a replacement forSendBufferLength
:Beta Was this translation helpful? Give feedback.
All reactions