Project

General

Profile

Bug #6321

Keep-alive requests are not being sent after pressing a download button

Added by Bert Cuypers over 3 years ago. Updated over 3 years ago.

Status:
Feedback
Priority:
High
Assignee:
-
Target version:
-
Start date:
04/03/2018
Due date:
% Done:

0%

Estimated time:

Description

In my application, I have a WPushButton which is linked to a file. The way I implemented this is as follows:

_file = std::make_shared<WFileResource>();
_downloadButton = _formTemplate->bindWidget("download", std::make_unique<WPushButton>(tr("DownloadButton")));
_downloadButton->setLink(WLink(_file));

In another part of my code I change the file which is attached to the download button:

_file->setFileName((const char *)fileName);
_file->suggestFileName((const char *)suggestedFileName);

When pushing this button and subsequently downloading the attached file, the server stops sending keep-alive requests which results in a session that is being destructed. This happens with the latest git version.


Files

issue_6321.cpp (988 Bytes) issue_6321.cpp Roel Standaert, 04/09/2018 12:20 PM
#1

Updated by Roel Standaert over 3 years ago

Could you maybe provide a standalone example? I tried to make one, but that seems to be working fine (see attachment). I had a wt_config.xml with the session timeout set to 5.

#2

Updated by Roel Standaert over 3 years ago

  • Status changed from New to Feedback

Also available in: Atom PDF