AsyncSocketSession - SendResponse() performance

Jun 30, 2011 at 7:09 AM

Sending responses to clients should be as fast as possible, the SendResponse method uses the synchronous "Send()" method to send data which makes here very slow

2 ways of solving this issue:

1) use BeginSend and make sure the data is synchronized.

2) use The same SocketAsyncEventArgs mechanism that you use the in server in order to receive the data from the clients, to send it back.




Jun 30, 2011 at 7:16 AM

Yes, this feature would be supported in SuperSocket 1.5? I am not sure about it...

Because in some cases, command execution is synchronous, and we support Sync/Async mode and two modes share the same commands implementation.

So this improvements may be very hard but valuable.