How to limit server number of entry point?
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?
jupiter hce wrote:
Hi, they are unrelated.
- 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