Bug 14760 – Clear content-length for libcurl option to eliminate segmentation fault.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-07-02T13:26:00Z
Last change time
2015-10-04T18:20:01Z
Assigned to
nobody
Creator
karo+dlang

Comments

Comment #0 by karo+dlang — 2015-07-02T13:26:15Z
Request post method & trace(CUSTOM REQUEST) method on persistent connection, libcurl is segmentation fault. segmentation fault is not depended on http response. But some responses are needed. import std.net.curl; void main() { auto http = HTTP(); auto url = "http://localhost:8080/"; // It is required to upload contents. post(url, "a", http); // segmentation fault by trace call after post with content. trace(url, http); }
Comment #1 by github-bugzilla — 2015-07-14T00:36:35Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/7cbf6c6bff93081ed377a18cbe53c3dfb03df72a Fix issue 14760 https://github.com/D-Programming-Language/phobos/commit/70028953a9a39b8578378c026e0924cbcafb081c Merge pull request #3464 from karronoli/fix-curl-segv Issue 14760 - Add clearContentLength for avoiding segmentation fault
Comment #2 by github-bugzilla — 2015-08-21T08:15:49Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/404c3cd9df4ab83cc35e670b6d1077bbb84878e2 fix Issue 14760 - Clear content-length for libcurl - content-length must be set to allow follow-up post/put/trace requests with empty body - reset content-length to 0 after _basicHTTP https://github.com/D-Programming-Language/phobos/commit/fadfe88564fa7eff6ebc7fad2ad02ae5d62ebc9c Merge pull request #3567 from MartinNowak/fix14760 fix Issue 14760 - Clear content-length for libcurl
Comment #3 by github-bugzilla — 2015-10-04T18:20:01Z