On Thu, 30 Oct 2014 07:58:14 GMT, Jacob Carlborg wrote:

I'm trying to do a simple TCP sever and client in vibe. Quite often when I run my code [1] I get the error in the subject. Here is the full output:

[1] http://pastebin.com/MsYPDGZG

/Jacob Carlborg

The calls to join are definitely a problem. IIRC, they will make you yield before the event loop is started (after module ctor).

Usually, when you test both client and server in the same app, you 'just' launch the server (listenTCP/UDP/HTTP is non-blocking), then run the client(s) using setTimer / runTask (example here: https://github.com/rejectedsoftware/vibe.d/blob/master/examples/rest/source/app.d#L332 )

Note: listenTCP/UDP/HTTP is non-blocking.