Actions
Bug #6321
openKeep-alive requests are not being sent after pressing a download button
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
Updated by Roel Standaert over 6 years ago
- File issue_6321.cpp issue_6321.cpp added
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.
Actions