Re: [boost] Asio multithreaded server

berserker_r <berserker_r@hotmail.com> wrote:
I have tried the patch but with no success...do I need any change to server.cpp file in order to make it works? Do I need a per session io_service?
No, don't. That approach has very poor scalability. I spent some time investigating this today and it smells a lot like a bug in the way Windows implements I/O completion ports. I can go into more detail if anybody's actually interested, but in any case I will be constructing a small test case in order to report the problem. I have just committed a workaround into CVS that should fix the problem you are seeing. If you can use the latest version from CVS please do, otherwise let me know what version you are using and i'll see if I can give you a patch to try. Cheers, Chris

I have just committed a workaround into CVS that should fix the problem you are seeing. If you can use the latest version from CVS please do, otherwise let me know what version you are using and i'll see if I can give you a patch to try.
I'm using 0.3.7 with boost 1.33.1. Thanks again

On 11/17/06, Christopher Kohlhoff <chris@kohlhoff.com> wrote: [...]
I spent some time investigating this today and it smells a lot like a bug in the way Windows implements I/O completion ports. I can go into more detail if anybody's actually interested, but in any case I will be constructing a small test case in order to report the problem.
I'm curious and interested. You can reply on private mail if you want. Giovanni P. Deretta
participants (3)
-
berserker_r
-
Christopher Kohlhoff
-
Giovanni Piero Deretta