Project

General

Profile

Bug #4974

WLoadingIndicator does not show up when using WebSockets

Added by Alan Finley about 6 years ago. Updated about 5 years ago.

Status:
Feedback
Priority:
Normal
Target version:
Start date:
06/14/2016
Due date:
% Done:

0%

Estimated time:

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

issue_4974.cpp (964 Bytes) issue_4974.cpp Roel Standaert, 03/15/2017 01:14 PM
wt_config.xml (127 Bytes) wt_config.xml Roel Standaert, 03/15/2017 01:14 PM
#1

Updated by Alan Finley about 6 years ago

I can also reproduce this behaviour on Wt 3.3.5.

#2

Updated by Koen Deforche almost 6 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.

#3

Updated by Roel Standaert almost 6 years ago

  • Status changed from InProgress to Implemented @Emweb
#4

Updated by Koen Deforche over 5 years ago

  • Status changed from Implemented @Emweb to Resolved
#5

Updated by Alan Finley over 5 years ago

Is this issue fixed in the master branch from GitHub? I've just tried it, and WLoadingIndicator still does not show up

#6

Updated by Roel Standaert over 5 years ago

Yes, this should be fixed, I attached the test application and wt_config.xml I've used, and that works.

#7

Updated by Roel Standaert about 5 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

Also available in: Atom PDF