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-70531] Apply timeout on WebSocket write operations #7596
Merged
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
91637c9
Apply timeout on WebSocket write operations
jglick 345e8f2
Picking up https://github.com/jenkinsci/remoting/pull/621/commits/f2e…
jglick ff82986
Merge branch 'master' into write-timeout
jglick 3aa1f32
Merge branch 'master' into write-timeout
jglick 2b19203
Pick up https://github.com/jenkinsci/remoting/pull/621/commits/d90baa…
jglick 31a9fa7
https://github.com/jenkinsci/remoting/pull/621 released
jglick a47d67e
Merge branch 'master' of https://github.com/jenkinsci/jenkins into wr…
jglick File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Does this mean that any channel write operation should be under 5 minutes?
I know it's a bad practice, but what if a plugin is copying big files from the agent to the controller, that could easily take more than 5 minutes.
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.
You mean if you are using
archiveArtifacts
withoutartifact-manager-s3
. Yes that could easily run over 5m for one copy operation; but this timeout is for one transport frame, which is currently only 8k (for WebSocket it could probably be increased considerably). Even oneCommand
(broken into frames) would not necessarily be the full file size, since you would be using aRemoteOutputStream
sendingProxyOutputStream.Chunk
s which default to 1Mb. (all IIUC, but certainly worth testing)