Many thanks!

https requests with manual memory management leads to assertion.

DMD64 D Compiler v2.074.1
DUB version 1.3.0
Linux x86_64

Test case:

/+ dub.json:
        {
                "name": "test",
                "versions": ["VibeManualMemoryManagement"],
                "dependencies": {
                        "vibe-d": "~>0.8.0"
                }
        }
+/

module main;

import std.conv;
import std.stdio;
import vibe.core.core;
import vibe.http.client;

void main() {
        runTask({
                HTTPStatus status;
requestHTTP("https://steamcommunity.com";, (scope request) {}, (scope response) {
                        status = response.statusCode.to!HTTPStatus;
                        response.dropBody();
                });
                writefln("status: %s", status);
                exitEventLoop();
        });
        runApplication();
}

Result:

CoreTaskFiber was terminated unexpectedly: Assertion failure
Program exited with code 255

Reply via email to