fix: Increase the timeout for graceful service termination by mykola-mokhnach · Pull Request #1354 · appium/java-client

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@mykola-mokhnach

Copy link Copy Markdown

Contributor

Change list

Selenium lib hardcodes the graceful shutdown timeout to 2 seconds (zero on Windows). This is not enough for Appium to properly shutdown all the drivers and clean up the leftovers.

Types of changes

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

// This all magic is necessary, because Selenium does not publicly expose
// process killing timeouts. By default a process is killed forcibly if
// it does not exit after two seconds, which is in most cases not enough for
Copy link Copy Markdown

Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a process is killed forcibly if it does not exist after two seconds

Interesting.

@mykola-mokhnach mykola-mokhnach merged commit d1d0f78 into appium:master

May 27, 2020

@mykola-mokhnach mykola-mokhnach deleted the service_kill branch

May 27, 2020 11:33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@SrinivasanTarget SrinivasanTarget SrinivasanTarget approved these changes

@KazuCocoa KazuCocoa Awaiting requested review from KazuCocoa

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@mykola-mokhnach @SrinivasanTarget