How to limit server number of entry point?
Added by jupiter hce over 3 years 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 over 3 years ago
jupiter hce wrote:
Hi, they are unrelated.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?
- https://www.redmine.org hosts the GNU General Public License Redmine Project
- https://redmine.emweb.be I think is a private Redmine Instance used to track other projects
Thanks
Lorenzo