Bug #4974
openWLoadingIndicator does not show up when using WebSockets
0%
Description
When WebSockets are enabled (web-sockets
option in wt_config.xml
is set to true
), I don't see any loading indicators.
An example:
void do_sleep()
{
::sleep(3);
}
Wt::WApplication* createApplication(const Wt::WEnvironment& env)
{
WApplication *app = new WApplication(env);
WPushButton *b = new WPushButton("sleep", app->root());
b->clicked().connect(boost::bind(&do_sleep));
return app;
}
Is this intended behaviour?
Files
Updated by Alan Finley over 8 years ago
I can also reproduce this behaviour on Wt 3.3.5.
Updated by Koen Deforche over 8 years ago
- Status changed from New to InProgress
- Assignee set to Roel Standaert
- Target version changed from 3.3.1 to 3.3.7
This is indeed a known behaviour. The origin of the difference is that with WebSockets browser requests are not always paired with server responses, but the current naive implementation for the loading indicator used this. This can be fixed however.
Updated by Roel Standaert about 8 years ago
- Status changed from InProgress to Implemented @Emweb
Updated by Koen Deforche about 8 years ago
- Status changed from Implemented @Emweb to Resolved
Updated by Alan Finley almost 8 years ago
Is this issue fixed in the master branch from GitHub? I've just tried it, and WLoadingIndicator still does not show up
Updated by Roel Standaert over 7 years ago
- File issue_4974.cpp issue_4974.cpp added
- File wt_config.xml wt_config.xml added
Yes, this should be fixed, I attached the test application and wt_config.xml I've used, and that works.
Updated by Roel Standaert over 7 years ago
- Status changed from Resolved to Feedback
Are you still noticing that the loading indicator is not showing up in the latest release?
Regards,
Roel