Issue 14260 - std.net.curl.byLineAsync should be stoppped manually.
Summary: std.net.curl.byLineAsync should be stoppped manually.
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords: bootcamp, trivial
Depends on:
Blocks:
 
Reported: 2015-03-08 08:11 UTC by Kazuki Komatsu
Modified: 2024-12-01 16:24 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kazuki Komatsu 2015-03-08 08:11:57 UTC
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 Martin Nowak 2018-01-30 23:45:12 UTC
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 dlangBugzillaToGithub 2024-12-01 16:24:02 UTC
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