Project

General

Profile

Actions

Bug #4974

open

WLoadingIndicator does not show up when using WebSockets

Added by Alan Finley over 8 years ago. Updated over 7 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Roel Standaert
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
Actions #1

Updated by Alan Finley over 8 years ago

I can also reproduce this behaviour on Wt 3.3.5.

Actions #2

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.

Actions #3

Updated by Roel Standaert over 8 years ago

  • Status changed from InProgress to Implemented @Emweb
Actions #4

Updated by Koen Deforche about 8 years ago

  • Status changed from Implemented @Emweb to Resolved
Actions #5

Updated by Alan Finley about 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 almost 8 years ago

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

Actions #7

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

Actions

Also available in: Atom PDF