1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

BeefPerf fixes

This commit is contained in:
Brian Fiete 2020-07-27 12:31:57 -07:00
parent 673d9a18f3
commit 43d7a57c38
3 changed files with 2 additions and 3 deletions

View file

@ -703,7 +703,7 @@ namespace BeefPerf
}
#unwarn
int selectResult = Socket.Select(&readSet, &writeSet, &exceptSet, 20*1000);
int selectResult = Socket.Select(&readSet, &writeSet, &exceptSet, 20);
int clientIdx = 0;
while (true)

View file

@ -52,7 +52,6 @@ namespace BeefPerf
{
if (mDataSize + addSize <= mBufSize)
return;
Debug.WriteLine("GrowReserve");
Resize(Math.Max(mDataSize + addSize, mDataSize + mDataSize/2));
}

View file

@ -25,7 +25,7 @@ namespace BeefPerf
g.DrawString(scope String()..AppendF("{0}", gApp.mUpdateCnt), 0, 0, .Right, mWidth - 8);
float curY = 64;
if (!gApp.mListenSocket.IsConnected)
if (!gApp.mListenSocket.IsOpen)
{
using (g.PushColor(0xFFFF4040))
g.DrawString(scope String()..AppendF("Failed to listen on port {0}", gApp.mListenPort), 0, 0, .Right, mWidth - 8);