boost asio sequential?
hi, I have a simple boost asio server (copied from asio sample), multiple clients can connect to the server, but the operation performed only in a sequential manner. that is only after completing the first reqest, the second one is performed. Is this the defined behavior? Thanks, Lloyd ______________________________________ Scanned and protected by Email scanner
Hi,
Yes, by default the server is single-threaded. There are examples on
how to add threads.
Matthieu
2010/8/18 Lloyd
hi,
I have a simple boost asio server (copied from asio sample), multiple clients can connect to the server, but the operation performed only in a sequential manner. that is only after completing the first reqest, the second one is performed. Is this the defined behavior?
Thanks, Lloyd
______________________________________ Scanned and protected by Email scanner
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Information System Engineer, Ph.D. Blog: http://matt.eifelle.com LinkedIn: http://www.linkedin.com/in/matthieubrucher
Yes, I think it is this one.
Matthieu
2010/8/18 Lloyd
Thanks. Could you mention which example is it? Is it HTTP Servr 3 (Thread pool) ?
Thanks, Lloyd
Hi,
Yes, by default the server is single-threaded. There are examples on how to add threads.
Matthieu
______________________________________ Scanned and protected by Email scanner _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Information System Engineer, Ph.D. Blog: http://matt.eifelle.com LinkedIn: http://www.linkedin.com/in/matthieubrucher
Hi, If you are testing multithread app on single cpu windows, all events are sequential, right? Kind Regards, Bill On Wed, Aug 18, 2010 at 7:00 PM, Matthieu Brucher < matthieu.brucher@gmail.com> wrote:
Yes, I think it is this one.
Matthieu
2010/8/18 Lloyd
: Thanks. Could you mention which example is it? Is it HTTP Servr 3 (Thread pool) ?
Thanks, Lloyd
Hi,
Yes, by default the server is single-threaded. There are examples on how to add threads.
Matthieu
______________________________________ Scanned and protected by Email scanner _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Information System Engineer, Ph.D. Blog: http://matt.eifelle.com LinkedIn: http://www.linkedin.com/in/matthieubrucher _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Kind Regards, Bill Zheng Mobile: 0427 438 225 Email: billz.zheng@gmail.com
participants (3)
-
bill zheng
-
Lloyd
-
Matthieu Brucher