Skip to content
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

[JENKINS-46659] Avoid Jetty timeouts by sending pings #3011

Merged
merged 1 commit into from Sep 22, 2017

Conversation

jglick
Copy link
Member

@jglick jglick commented Sep 9, 2017

See JENKINS-46659.

Proposed changelog entries

  • Avoid a possible server-side timeout on long-running CLI commands using plain HTTP mode by sending periodic pings from the client.

Desired reviewers

@reviewbybees

…ket every 10s while a CLI command is running.
@ghost
Copy link

ghost commented Sep 9, 2017

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

Any chance it collides with stdin.write(c);, e.g. during long send operations like file parameter upload?

@jglick
Copy link
Member Author

jglick commented Sep 12, 2017

@oleg-nenashev should be safe. The (non-delegating) send overloads are all synchronized.

@ghost
Copy link

ghost commented Sep 15, 2017

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

🐝

@oleg-nenashev
Copy link
Member

@reviewbybees done

@oleg-nenashev oleg-nenashev added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Sep 18, 2017
@oleg-nenashev
Copy link
Member

I am going to merge it to the next weekly if nobody votes against

@oleg-nenashev oleg-nenashev merged commit 3f84d30 into jenkinsci:master Sep 22, 2017
@jglick jglick deleted the CLI-ping-JENKINS-46659 branch September 25, 2017 13:36
@daniel-beck
Copy link
Member

Per JENKINS-59267 the timeout seems to be 5 seconds in recent Jenkins/Winstone/Jetty, so the 10 second interval is too great.

How expensive is this? Would going with 3-4 seconds solve this without introducing a ton of load?

@jglick
Copy link
Member Author

jglick commented Sep 7, 2019

Sure, that would be fine I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback
Projects
None yet
3 participants