Boost Users :
Subject: Re: [Boost-users] Concurrency and session termination in boost::asio
From: Scott Gifford (sgifford_at_[hidden])
Date: 2008-11-06 12:10:12
Boris <boriss_at_[hidden]> writes:
> On Thu, 06 Nov 2008 17:38:39 +0100, Scott Gifford <sgifford_at_[hidden]> wrote:
>> At first glance, thread per CPU seemed simpler. Also I was planning
>> on having my read callback handle some commands that may be slow, such
>> as database queries, and I didn't want all other clients in the same
>> io_service to block while that's happening. But certainly I can
>> change that.
> See http://thread.gmane.org/gmane.comp.lib.boost.asio.user/1300 for a
> (small) discussion about the various designs.
Thanks Boris, I appreciate the link!
> I wouldn't change the design of an application though just because
> of difficulties in closing a socket.
Right now my app is just a few hundred lines of code for testing,
mostly cribbed from the boost examples, so changing the design this
early is no big deal. :-)
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net