Project

General

Profile

Bug #8597

WResource setTakesUpdateLock not working

Added by Korneel Dumon over 1 year ago. Updated 11 months 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_));
#1

Updated by Korneel Dumon over 1 year 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.

#2

Updated by Korneel Dumon over 1 year ago

  • Target version set to 4.6.0
#3

Updated by Roel Standaert over 1 year ago

  • % Done changed from 0 to 100
#4

Updated by Roel Standaert over 1 year ago

  • Status changed from Implemented @Emweb to Resolved
#5

Updated by Roel Standaert 11 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF