Project

General

Profile

Actions

Bug #8597

closed
KD

WResource setTakesUpdateLock not working

Bug #8597: WResource setTakesUpdateLock not working

Added by Korneel Dumon over 5 years ago. Updated almost 5 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_));

KD Updated by Korneel Dumon about 5 years ago Actions #1

  • 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.

KD Updated by Korneel Dumon about 5 years ago Actions #2

  • Target version set to 4.6.0

RS Updated by Roel Standaert about 5 years ago Actions #3

  • % Done changed from 0 to 100

RS Updated by Roel Standaert about 5 years ago Actions #4

  • Status changed from Implemented @Emweb to Resolved

RS Updated by Roel Standaert almost 5 years ago Actions #5

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom