Bug 14260 – std.net.curl.byLineAsync should be stoppped manually.

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-03-08T08:11:57Z
Last change time
2024-12-01T16:24:02Z
Keywords
bootcamp, trivial
Assigned to
No Owner
Creator
Kazuki Komatsu
Moved to GitHub: phobos#10119 →

Comments

Comment #0 by enjouzensyou.boinc — 2015-03-08T08:11:57Z
In the current implementation of byLineAsync, the created thread can not be terminated at any time manually. It are permanently executed until the end of communication.
Comment #1 by code — 2018-01-30T23:45:12Z
The code is already provisioned to handle that, just need to enhance WorkerThreadProtocol to add an abort method that sends a bool to workerTid. This will be received in _receiveAsyncChunks and tell curl to abort the request (by returning 0 from onReceive).
Comment #2 by robert.schadek — 2024-12-01T16:24:02Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10119 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB