Boost logo

Boost :

Subject: Re: [boost] [beast] thread per connection example?
From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2017-07-02 15:01:03


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


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