Open ghost opened 8 years ago
sponger94, no, it will not.
WebSocket use Socket.ReceiveAsync(SocketAsyncEventArgs e) method. This method sets callback on event from I/O completion port. So, your handler _WebSocketMessageReceived is executed every time in some threadpool's thread. BUT WebSocket itself will start recieving new packets (will call another Socket.ReceiveAsync) only when your handler will be completed.
Let's say I'm accepting packets from multiple machines, each packet should be responded, but the response is a bit slow... say it takes 20 seconds for each packet.
Will it still receive packets even if WebSocket_MessageReceived is blocked?