How to limit server number of entry point?

Added by jupiter hce about 1 year ago

Hi,

My apology for duplicating post, I am not clear the difference between https://redmine.emweb.be/ and https://www.redmine.org, which web site is active?

My web application is for manufacturing process, I need it to be run by a single thread and a single entry point. I am currently testing the example WtHome running --threads 1, it calls one WServer server(argc, argv, WTHTTP_CONFIGURATION) and one addEntryPoint:

server.addEntryPoint(EntryPointType::Application, std::bind(&createWtHomeApplication, std::placeholders::_1, blogDb.get()), "", "/css/wt/favicon.ico");

The createWtHomeApplication returns one std::make_unique<WtHome>(env, *blogDb);

But it created 2 WtHome instances, it called WtHome constructor twice. Every time I clicked Firefox reload current page once every time it would recreate 2 WtHome instances + n * number of reload page. Is it a bug in Wt 4.5.0 or normal behavior, how could I control and limit the entry point to only one regardless I reload current page or not?

Thank you.

Kind regards,

jupiter

Replies (1)

RE: How to limit server number of entry point? - Added by Lorenzo Meneghetti about 1 year ago

jupiter hce wrote:

Hi,

My apology for duplicating post, I am not clear the difference between https://redmine.emweb.be/ and https://www.redmine.org, which web site is active?

Hi, they are unrelated.

Thanks
Lorenzo

(1-1/1)