-
Notifications
You must be signed in to change notification settings - Fork 7
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
EADDRINUSE after force-quitting stub-rpc-server #2
Comments
I suspect this is OS dependent. The stub server binds to a particular address (usually 1337) and if the underlying OS doesn't release that binding when the process is killed then the subsequent run will fail due to port in use. It also depends on what exactly a If you wait a couple minutes (for timeouts) does the port eventually get opened up so it can be re-used? I don't believe the effort required to fix this is worth the gains since this is a transient problem that occurs when you |
It does not. It's been a couple days now and the port never opens up again. Is it possible to pre-emptively unbind the ports before the tests are run, in case the tests don't exit cleanly? |
No, I actually ran into this issue (port in use by killed process) for other reasons and apparently on Linux there is no to force the unbinding of a port and the OS never cleans up used ports. Out of curiosity, if you ask the OS what is using port |
Getting an unusual error from ethrpc's tests. I force-quit (CTRL+C) the test suite during a run-thru and now I get the following error:
(Not sure if this is an ethrpc issue or an ethereumjs-stub-rpc-server issue.)
The text was updated successfully, but these errors were encountered: