ethereum / node-ethereum

[DEPRECATED] a simple standalone or embeddable Ethereum client written for Node.js
GNU General Public License v2.0
46 stars 38 forks source link

tie the life cycles of subprocesses to the main process on crashes #55

Open wanderer opened 9 years ago

kumavis commented 9 years ago

e.g. when the main process crashes, the websockets server sticks around and blocks the port -- requiring a force stop every time

wanderer commented 9 years ago

the problem is that node spins up a new independent process. when the main process shuts down by default it ask the child_process to shutdown. But if it crashes it won't get to asking the child_process

wanderer commented 9 years ago

wait i don't even start the WS server in a child process....

kumavis commented 9 years ago

hmmm... well the only problem im having right now is with the ws server

maybe we just need to setup a listener for killing the ws server you'd think you'd get that for free but we're not

wanderer commented 9 years ago

ok so this was defaintly a problem with the db server. And thats now fixed. WS issue is still open but I can't seem to replicate it