Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] Why are the strands in the "HTTP Server 3" example necessary?
From: Stephan Menzel (stephan.menzel_at_[hidden])
Date: 2010-01-11 12:22:05


On Thu, Jan 7, 2010 at 10:11 PM, Boris Schaeling <boris_at_[hidden]> wrote:
> I quickly checked the connection class and couldn't find a reason either why
> strand is used here. The comment in connection.hpp (///Strand to ensure the
> connection's handlers are not called concurrently) doesn't make any sense as
> a new asynchronous operation is only started when another ends. Maybe the
> strand is left over from an earlier version of the HTTP server?

I am using an all but identical implementation without the strands for
quite some time now without any problems. They appear entirely
superficial as far as I can see.

Cheers,
Stephan


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