Project

General

Profile

Actions

Bug #8597

closed

WResource setTakesUpdateLock not working

Added by Korneel Dumon over 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
05/27/2021
Due date:
% Done:

100%

Estimated time:

Description

See https://redmine.emweb.be/boards/2/topics/17615 for example program.
For some reason, the lock is only taken when handling a continuation:

  std::unique_ptr<Wt::WApplication::UpdateLock> updateLock;
  if (takesUpdateLock() && continuation && app_) {
    updateLock.reset(new Wt::WApplication::UpdateLock(app_));
Actions #1

Updated by Korneel Dumon over 3 years ago

  • Status changed from New to Implemented @Emweb

Turns out it had nothing to do with the continuation. The initial lock in WResource has a request associated with it, making WApplication::triggerUpdate() think it doesn't have to do anything.

Actions #2

Updated by Korneel Dumon over 3 years ago

  • Target version set to 4.6.0
Actions #3

Updated by Roel Standaert over 3 years ago

  • % Done changed from 0 to 100
Actions #4

Updated by Roel Standaert about 3 years ago

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

Updated by Roel Standaert almost 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF