Skip to content

Commit

Permalink
删除调试信息
Browse files Browse the repository at this point in the history
  • Loading branch information
macworld committed Apr 21, 2014
1 parent 3ea2a4b commit 94585b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions SocketManager/SocketServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ public bool Start(IPEndPoint localEndPoint)
return false;
}

// start the server with a listen backlog of 100 connections
listenSocket.Listen(100);
// start the server with a listen backlog of 10000 connections
listenSocket.Listen(10000);
// post accepts on the listening socket
stop = false;
StartAccept(null);
Expand Down Expand Up @@ -265,7 +265,7 @@ private void ProcessReceive(SocketAsyncEventArgs e)
{
//increment the count of the total bytes receive by the server
Interlocked.Add(ref m_totalBytesRead, e.BytesTransferred);
Console.WriteLine("The server has read a total of {0} bytes", m_totalBytesRead);
//Console.WriteLine("The server has read a total of {0} bytes", m_totalBytesRead);


if (OnDataReceived != null)
Expand Down
2 changes: 1 addition & 1 deletion ezHttp/BizLogic/MainLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static void OnReceivedHttpReq(object sender, AsyncUserToken token, byte[] data)
token.HttpParser.SetRawData(data);
if (token.HttpParser.IsHttpRequest())
{
Console.WriteLine("\t\tresource url: " + token.HttpParser.GetResourceUrl());
//Console.WriteLine("\t\tresource url: " + token.HttpParser.GetResourceUrl());
Byte[] sendData = FileManager.FileBuffer.GetInstance().readFile(token.HttpParser.GetResourceUrl(), ref statusCode);
token.HttpParser.SetStatusCode(statusCode);
token.Socket.Send(token.HttpParser.GetWrappedResponse(sendData));
Expand Down

0 comments on commit 94585b6

Please sign in to comment.