Skip to content

Commit

Permalink
aa
Browse files Browse the repository at this point in the history
  • Loading branch information
fengma312 committed Jan 12, 2018
1 parent 4ed2933 commit 313c08e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 34 deletions.
22 changes: 0 additions & 22 deletions socket.core/Common/AsyncUserToken.cs

This file was deleted.

9 changes: 0 additions & 9 deletions socket.core/Common/SocketAsyncEventArgsPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,5 @@ public int Count
{
get { return m_pool.Count; }
}

/// <summary>
/// 清空
/// </summary>
//public void Clear()
//{
// m_pool.Clear();
//}

}
}
6 changes: 5 additions & 1 deletion socket.core/Server/TcpServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ private void ProcessReceive(SocketAsyncEventArgs e)
}
}
//准备下次接收数据
if (client.socket.Connected==true)
//if (client.socket.Connected==true)
{
if (!client.socket.ReceiveAsync(e))
{
Expand Down Expand Up @@ -443,6 +443,10 @@ private void CloseClientSocket(SocketAsyncEventArgs e)
connectClient.TryTake(out conn);
m_maxNumberAcceptedClients.Release();
}
else
{

}
}

#endregion
Expand Down
2 changes: 1 addition & 1 deletion test.window.client/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--接收缓存-->
<add key="receiveBufferSize" value="10240"/>
<!--自动发送多少次数-->
<add key="sendnumber" value="1"/>
<add key="sendnumber" value="1000"/>
<!--发送内容-->
<add key="senddata" value="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"/>
</appSettings>
Expand Down
2 changes: 1 addition & 1 deletion test.window.server/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!--最大连接数-->
<add key="numConnections" value="10"/>
<!--缓存大小-->
<add key="receiveBufferSize" value="1024"/>
<add key="receiveBufferSize" value="64"/>
<!--超时时间-->
<add key="overtime" value="600"/>
</appSettings>
Expand Down

0 comments on commit 313c08e

Please sign in to comment.