Hi,
Anyone know what I'm doing wrong here?
This program crashes if the client closes the connection. Error message is:
Task terminated with unhandled exception: Trying to acquire a TCP connection that is currently owned.
import vibe.d;
shared static this() {
listenTCP(2500, (conn) {
auto remoteconn = connectTCP("localhost", 2525);
runTask(() {
remoteconn.write(conn);
});
conn.write(remoteconn);
});
}