richo / groundstation

Decentralised gossip driven data sharing for the 21st century.
http://groundstation.me
MIT License
59 stars 12 forks source link

Fork a child for each connection #17

Closed richo closed 11 years ago

richo commented 11 years ago

There's no reason why can't open a pipe and then fork every time we get a new connection, and recieve global updates from the broker over the pipe, meaning that an individual client crashing won't take out stationd (and we can keep our socket forever, mwahahaha).

In practice, this means that no more "but it's single threaded" liberties can be taken with concurrency.

richo commented 11 years ago

Implemented in features/fork_clients and features/fork_workers, but surrounding code is now stable enough to not warrant the effort.