toastdotdev / toast

The best place to stack your JAM. Toast is a Jamstack framework
153 stars 13 forks source link

Multiple sockets #39

Closed ChristopherBiscardi closed 3 years ago

ChristopherBiscardi commented 3 years ago

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.

ChristopherBiscardi commented 3 years ago

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.