alexkirsz / dispatch-proxy

Combine internet connections, increase your download speed
MIT License
3.47k stars 245 forks source link

Add 'restart "dispatch start" command every time encounters an error' option #93

Closed Unknown78 closed 4 years ago

Unknown78 commented 4 years ago

In my case, it's often to see connection reset in the console log.

error [4d70af] clientConnection
           Error: read ECONNRESET
               at TCP.onStreamRead (internal/stream_base_commons.js:111:27)

At first encounters, it may seems working normally, but gradually over time, the load balancing will stop working. The speedtest won't show the maximum potential and browser lags.

I'm unable to find the problem and why does it happened. My solution right now is to manually restart the program every time I'm encountering it.

There could be automatic but still harsh solution to be able restart the dispatch process every time it encounters a reset error.

I suggest to add 'restart "dispatch start" command every time encounters an error' option, perhaps it will be useful for experimental debug other than my case above.

kavehra commented 4 years ago

How we can add Restart dispatch Start like a loop ?