-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Use GzipHandler instead of filter #1331
Conversation
9b6b0e5
to
984cf49
Compare
984cf49
to
7418330
Compare
61778c7
to
ede71e9
Compare
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.
See inputs for some minor improvements.
...src/main/java/org/eclipse/scout/rt/server/commons/servlet/filter/gzip/GzipServletFilter.java
Outdated
Show resolved
Hide resolved
...in/java/org/eclipse/scout/rt/server/commons/servlet/filter/gzip/LegacyGzipServletFilter.java
Outdated
Show resolved
Hide resolved
org.eclipse.scout.rt.app/src/main/java/org/eclipse/scout/rt/app/Application.java
Outdated
Show resolved
Hide resolved
org.eclipse.scout.rt.app/src/main/java/org/eclipse/scout/rt/app/Application.java
Outdated
Show resolved
Hide resolved
org.eclipse.scout.rt.app/src/main/java/org/eclipse/scout/rt/app/Application.java
Outdated
Show resolved
Hide resolved
org.eclipse.scout.rt.app/src/main/java/org/eclipse/scout/rt/app/Application.java
Outdated
Show resolved
Hide resolved
org.eclipse.scout.rt.app/src/main/java/org/eclipse/scout/rt/app/ApplicationProperties.java
Outdated
Show resolved
Hide resolved
org.eclipse.scout.rt.app/src/main/java/org/eclipse/scout/rt/app/ApplicationProperties.java
Outdated
Show resolved
Hide resolved
org.eclipse.scout.rt.app/src/main/java/org/eclipse/scout/rt/app/ApplicationProperties.java
Show resolved
Hide resolved
org.eclipse.scout.rt.app/src/main/java/org/eclipse/scout/rt/app/ApplicationProperties.java
Show resolved
Hide resolved
/** | ||
* @deprecated will be removed in a future release. | ||
*/ | ||
@Deprecated | ||
public class GzipServletOutputStream extends ServletOutputStream { | ||
|
||
private static final Logger LOG = LoggerFactory.getLogger(GzipServletOutputStream.class); |
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.
Line 137: could that be a feature we will miss in the new implementation? Could you check if such a try / catch would be possible using the new handler?
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.
org.eclipse.jetty.server.handler.gzip.GzipRequest
and org.eclipse.jetty.server.handler.gzip.GzipResponseAndCallback
seem not to use traditional (blocking) streams (maybe this is the difference to a traditional filter).
However I will try to reproduce it on our test environment upload/download some large files, check whether download was gzipped and simulate a connection error (if file is large enough I may just stop reading) - afterwards check if exceptions are logged.
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.
Unable to produce an error/simulating a connection failure producing an error:
- Two browsers used: Chrome and Firefox
- Tried: Manually aborting request of large file download
- Tried: Forcefully terminating browser application during large file download
- Tried: Forcefully terminating browser application during large file upload
- Tried: Interrupting physical network connection while downloading large file in browser
As the new implementation does not use streams the old "connection failure fix" cannot be applied straight-forward; currently we do not know about any exceptions which may occur during connection failure with the new handler; if they occur we should re-think if we need to implement some additional failure handling. For now I would keep it as it is.
3e80c6b
to
fd0f424
Compare
fd0f424
to
921ed3b
Compare
@@ -1,3 +1,12 @@ | |||
/* | |||
* Copyright (c) 2010, 2025 BSI Business Systems Integration AG |
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.
Other archetype files seems not to have this header.
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.
Removed it
org.eclipse.scout.rt.app/src/main/java/org/eclipse/scout/rt/app/Application.java
Show resolved
Hide resolved
921ed3b
to
1bcf83b
Compare
Go jenkins |
Jenkins go |
Failing tests are the same which are also failing in https://ci.eclipse.org/scout/job/org.eclipse.scout.rt.branch-25.2_continuous_pipeline/lastCompletedBuild/testReport/ (and 25.1 as well). |
408392