diff --git a/tests/vibe.core.net.1452/dub.sdl b/tests/vibe.core.net.1452/dub.sdl new file mode 100644 index 0000000..28b66b5 --- /dev/null +++ b/tests/vibe.core.net.1452/dub.sdl @@ -0,0 +1,3 @@ +name "tests" +description "Invalid memory operation on TCP connection leakage at shutdown" +dependency "vibe-d:core" path="../../" diff --git a/tests/vibe.core.net.1452/source/app.d b/tests/vibe.core.net.1452/source/app.d new file mode 100644 index 0000000..c0ac16e --- /dev/null +++ b/tests/vibe.core.net.1452/source/app.d @@ -0,0 +1,23 @@ +import vibe.core.core; +import vibe.core.net; +import core.time : msecs; + +class C { + TCPConnection m_conn; + + this() + { + m_conn = connectTCP("google.com", 443); + } + + ~this() + { + m_conn.close(); + } +} + +void main() +{ + auto c = new C; + // let druntime collect c during shutdown +}