
berserker_r <berserker_r@hotmail.com> wrote:
Asio samples lacks a multithreaded server implementation: where can I find an example/tutorial about that?
There isn't one included yet in Boost.Asio, but you can have a look at these programs: http://asio.cvs.sourceforge.net/asio/asio/src/tests/performance/
I need to write a multithreaded http server: I'm running multiple calls to io_service::run from a pool of threads but it looks that if my session object takes a lot of time to generate the http response the server block any accept operation until the session has finished...
It's a bit hard to say what might be wrong without knowing some more details. Can you post a small bit of code or pseudocode showing how the session and acceptor work? Thanks. Cheers, Chris