Bug 9054 – std.net.curl byLineAsync and byChunkAsync broken.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2012-11-21T19:50:00Z
Last change time
2014-04-22T17:47:34Z
Assigned to
nobody
Creator
david

Attachments

IDFilenameSummaryContent-TypeSize
1163logs.tar.gzResults from running on 32-bit Ubuntu 12.10 and 64-bit Ubuntu 12.04. application/x-gzip1470

Comments

Comment #0 by david — 2012-11-21T19:50:53Z
Created attachment 1163 Results from running on 32-bit Ubuntu 12.10 and 64-bit Ubuntu 12.04. The byLineAsync and byChunkAsync functions do not work on Linux (both x86 and x86_64) using DMD 2.0.60. The non-async versions work fine. import std.stdio, std.net.curl; void main() { string url = "http://www.dlang.org"; auto chunkRange = byChunk(url, 10); writeln("byChunk: ", chunkRange.front); auto asyncChunkRange = byChunkAsync(url, 10); writeln("byChunkAsync: ", asyncChunkRange.front); } On x86 the async call throws an exception: std.net.curl.CurlException@std/net/curl.d(3348): An unknown option was passed in to libcurl on handle 8B25400 On x86_64 the async call throws that exception and an OwnerTerminated exception. Logs for both are attached. To get around the problem with link ordering and curl on linux both were compiled with "dmd chunktest.d -L-lphobos2 -L-lcurl".
Comment #1 by david — 2014-03-04T20:03:43Z
(In reply to comment #0) Still confirmed to be broken on DMD 2.065.
Comment #2 by github-bugzilla — 2014-04-22T17:47:34Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/039a237cbadf681d1d66436bde67af6a389d8920 fixes Issue 9054 - std.net.curl byLineAsync and byChunkAsync broken. https://github.com/D-Programming-Language/phobos/commit/7c5bf90dc350654d749a5053a4069dff9dab9f06 Merge pull request #2086 from tcsc/master fixes Issue 9054 - std.net.curl byLineAsync and byChunkAsync broken.