Re: [Mono-dev] TcpServerChannel loosing connections under heavy load

2009-07-13 Thread pablosantosl...@terra.es
Hi Gonzalo, Inside the threadPool the following code: threadDone.WaitOne(PoolGrowDelay, false); Makes thread creation wait 500ms (I guess just forcing the CPU to switch to another one) each time a new thread is created (when the pool is growing). If you remove it, connection problems

Re: [Mono-dev] TcpServerChannel loosing connections under heavy load

2009-07-13 Thread Gonzalo Paniagua Javier
On Mon, 2009-07-13 at 19:36 +0200, pablosantosl...@terra.es wrote: [...] That should be modified to make use of the .NET ThreadPool and use asynchronous operations for accept, read and write (this last one is not mandatory). There's code in xsp that illustrates the way it should be done.

Re: [Mono-dev] TcpServerChannel loosing connections under heavy load

2009-07-13 Thread Gonzalo Paniagua Javier
On Sun, 2009-07-12 at 00:11 +0200, pablosantosl...@terra.es wrote: Hi, I'm having issues with Mono remoting under high performance networking scenarios. Some clients are rejected since the server is not able to handle connections. Look at the following code inside TcpServerChannel

[Mono-dev] TcpServerChannel loosing connections under heavy load

2009-07-11 Thread pablosantosl...@terra.es
Hi, I'm having issues with Mono remoting under high performance networking scenarios. Some clients are rejected since the server is not able to handle connections. Look at the following code inside TcpServerChannel