-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cancel timer when server responds #13
base: master
Are you sure you want to change the base?
Conversation
@yoursunny, thank you for the pull request! Will release the update during the week. |
I am not sure. That it should work as you have described. If we will stop the server when there is no active request then it should stop right after line |
The change is on the client. No change has been made to the server. |
Oh, clear. Then it should be separate processes for client and server. I will recheck. Thanks |
For this test case, the server cannot prevent the process from exiting, because it uses an EventEmitter that does not have a socket. Your socket based servers, such as the WebSocket transport, lack a |
Yes, you are right. No IO in event emitter. Will try your example once more) |
Hey @koorchik can you review and merge? |
After a long time without action from the repository owner, I have decided to publish my patches in a fork: @yoursunny/mole-rpc. |
The code has a bug: the program below does not terminate right away after all requests have been processed, but has to wait for the 300-second timeout.
This patch fixes the bug by canceling the timer when server responds.