toastdotdev/toast

Multiple sockets

ChristopherBiscardi opened this issue · 1 comments

Currently, the socket approach we use for sourceData communicates through a single socket. This means you can only have one toast running at a time in the sourceData phase. The socket name needs to be built per-run with some randomized seed so that we don't ever overlap or try to re-use another process' socket.

One error this can surface is an ECONNREFUSED.

Fixed the error in 0.3.30. I still think that long term we might want to randomize socket names, but going to leave this for now.