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

Review HttpSender.ContentSender (and other ICB) to remove overridden succeeded method #11932

Closed
gregw opened this issue Jun 19, 2024 · 2 comments · Fixed by #11950
Closed

Review HttpSender.ContentSender (and other ICB) to remove overridden succeeded method #11932

gregw opened this issue Jun 19, 2024 · 2 comments · Fixed by #11950
Assignees
Labels
Bug For general bugs on Jetty side

Comments

@gregw
Copy link
Contributor

gregw commented Jun 19, 2024

Jetty version(s)
12
Jetty Environment
all
Java version/vendor (use: java -version)
all
OS type/version
all

Description

Currently the HttpSender.ContentSender class is an ICB and it overrides the succeeded() method. This method is not serialized with other ICB action, nor is there a memory barrier.
So for example, code written in onAborted (which is serialized) might be acting of a field that is changed by another thread calling succeeded().

Generally the ICB.succeeded() and ICB.failed(Throwable) methods should be considered final and overwritten only in exceptional circumstances.

@gregw gregw added the Bug For general bugs on Jetty side label Jun 19, 2024
@gregw
Copy link
Contributor Author

gregw commented Jun 19, 2024

See #11876

@gregw
Copy link
Contributor Author

gregw commented Jun 19, 2024

It looks like HttpSender.ContentSender is just one example of many in HTTP2 and HTTP3. All of these need to be reviewed and explicit onAbort handling added.

gregw added a commit that referenced this issue Jun 19, 2024
lorban added a commit that referenced this issue Jun 24, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban added a commit that referenced this issue Jun 24, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban added a commit that referenced this issue Jun 24, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban added a commit that referenced this issue Jun 25, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban added a commit that referenced this issue Jun 25, 2024
…inal

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban added a commit that referenced this issue Jun 26, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban added a commit that referenced this issue Jun 26, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban added a commit that referenced this issue Jun 26, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 26, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 26, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 26, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 26, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 26, 2024
…inal

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 26, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 26, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 26, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 27, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 27, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 27, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 27, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 27, 2024
…inal

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 27, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 27, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
olamy pushed a commit that referenced this issue Jun 27, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban added a commit that referenced this issue Jun 27, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban added a commit that referenced this issue Jun 27, 2024
…inal

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban added a commit that referenced this issue Jun 27, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban added a commit that referenced this issue Jun 27, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban added a commit that referenced this issue Jun 27, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban added a commit that referenced this issue Jun 27, 2024
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For general bugs on Jetty side
Projects
No open projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants