$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [boost-user][asio]How can i limit tcpserver's connection count?
From: TONGARI (tongari95_at_[hidden])
Date: 2011-03-16 08:48:05
2011/3/16 rhapsodyn <rhapsodyn_at_[hidden]>
> Yes, i considered the "don't call start_accept() if (limit > threshold)"
> idea.(in fact, only with accept.close(), i can avoid the unexpected extra
> client)
> But when some "active" connection becoming "inactive", how can i restart
> the
> accept action? with another thread? It seems weird, because i thought there
> has to be a accept thread "always running" on server :0
Then apply start_accept() again only when the client being served/inactive?