|
Hi, I’m trying to make a multithreaded server using
the Socket api. I’m
not quite able to get the behavior I want from mono. After trying to thread off
each request myself, like I’m able to in java. I experienced problems
with the socket randomly being disconnected. This is probably due to my own
stupidity, so I decided to use xsp as a reference.
They use ThreadPool.QueueUserWorkItem(new WaitCallback(worker.Run)); I then adopted this into my code and things
became more stable. However, using mono on linux
makes a second request block until the first is finished, whilst on .NET in
windows the both are being processed in parallel. Is this a fact or am I doing
something wrong? I would like to be able to thread off on my own, but
the random socket disconnections are bothering me, could anyone give me some
pointers? �yvind Hvamstad |
