-
-
Notifications
You must be signed in to change notification settings - Fork 424
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
fix: Make sure ports are closed properly after the cleanup #1094
fix: Make sure ports are closed properly after the cleanup #1094
Conversation
@KazuCocoa Could you please verify this PR works for you with real devices when you have time? |
I tested this branch. I haven't reproduced the issue, so not sure the issue is fixed by this change.
|
Thanks for checking it @KazuCocoa |
The result was
|
it looks like we are facing the problem similar to https://stackoverflow.com/questions/49268934/socket-in-close-wait-for-node-js-client I'll add the necessary fixes to ios-device lib |
Changes added in appium/appium-ios-device#53 |
I applied both ios-device and 2ba188a , but no luck... (The same result.) |
@umutuzgur Do you have any more ideas on that? |
@mykola-mokhnach Maybe we need to wait for a close event when we call |
@umutuzgur I like such approach, although we need to carefully test this functionality first to make sure iOS handles partial socket closing properly. Otherwise there might be unexpected delays. |
this.serverSocket = null; | ||
reject(e); | ||
}); | ||
// TODO: Wait until the connection is actually closed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Hopefully addresses appium/appium#13452