Boost logo

Boost :

Subject: Re: [boost] [beast] thread per connection example?
From: Peter Dimov (lists_at_[hidden])
Date: 2017-07-02 15:18:56


Vinnie Falco wrote:
> On Sun, Jul 2, 2017 at 7:49 AM, Peter Dimov via Boost
> <boost_at_[hidden]> wrote:
> > Suppose that I want to implement an HTTP server that uses the thread per
> > connection model. What example should I use as a starting point?
>
> This framework Port creates a new thread for each connection:
> https://github.com/vinniefalco/Beast/blob/78a065ba39836d91d7e70d93de7f9140f518083b/example/server-framework/http_sync_port.hpp

Thanks, this would have to do. It's a bit on the complex side, and the ASIO
echo example is too simple, but such is life.

This doesn't look correct by the way:

https://github.com/vinniefalco/Beast/blob/78a065ba39836d91d7e70d93de7f9140f518083b/example/server-framework/http_sync_port.hpp#L297


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk