From: Glyn M. <gly...@gm...> - 2010-04-07 15:06:43
|
Hi Erik, On 6 April 2010 18:20, Nelson, Erik - 2 <eri...@ba...>wrote: > If I try to run two servers on the same port, will I get an error? > Taking from the hello_world_server.cpp example, something like > > > > > > hello_world handler; > > server server_(“localhost”, “3000”, handler); > > server server_1(“localhost”, “3000”, handler); > > > > if I call run() on both servers from different threads, it appears that no > exception is thrown… is that expected behavior? Is there some way to detect > if a port is already in use? > > > I don't think there is an expected behaviour for running two servers on the same port in the same process, but normally it shouldn't work if the port is already in use. Can you add this to the issue tracker? Thanks, Glyn |