Closed s-ludwig closed 6 years ago
I have committed a proper fix now, along with a fix in vibe-core: https://github.com/vibe-d/vibe-core/pull/89 This still needs to be merged, with a new version tag being added before this will pass.
Thank you @s-ludwig, the rest of the code should be working and coherent with the unittest.
The reason for the builds failing is this code in
internals/http1.d
:To pass the
connection
structure to a closure it should not have a destructor. Since I was afraid that removing a destructor from vibe-core/net.d module TCPConnection would cause breakage of the existing code, I resorted to adding a workaround, which I didn't push yet because I wanted to discuss it with you:At the moment this is the only way I found to prevent the compiler from failing because of the scoped destruction.