Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-user][asio]How can i limit tcpserver's connection count?
From: rhapsodyn (rhapsodyn_at_[hidden])
Date: 2011-03-15 23:07:25


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

--
View this message in context: http://boost.2283326.n4.nabble.com/boost-user-asio-How-can-i-limit-tcpserver-s-connection-count-tp3356439p3380729.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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