[GitHub] [tomcat] markt-asf commented on a diff in pull request #581: Speedup by removing non pattern replaceAll with constant arg

2023-02-02 Thread via GitHub
markt-asf commented on code in PR #581: URL: https://github.com/apache/tomcat/pull/581#discussion_r1094835289 ## java/org/apache/tomcat/buildutil/translate/Utils.java: ## @@ -123,7 +123,7 @@ static String formatValueCommon(String in) { result = ESCAPE_LEADING_SPACE.ma

[GitHub] [tomcat] tbw777 commented on a diff in pull request #581: Speedup by removing non pattern replaceAll with constant arg

2023-02-02 Thread via GitHub
tbw777 commented on code in PR #581: URL: https://github.com/apache/tomcat/pull/581#discussion_r1094863229 ## java/org/apache/tomcat/buildutil/translate/Utils.java: ## @@ -123,7 +123,7 @@ static String formatValueCommon(String in) { result = ESCAPE_LEADING_SPACE.match

[GitHub] [tomcat] markt-asf commented on a diff in pull request #581: Speedup by removing non pattern replaceAll with constant arg

2023-02-02 Thread via GitHub
markt-asf commented on code in PR #581: URL: https://github.com/apache/tomcat/pull/581#discussion_r1094884701 ## java/org/apache/tomcat/buildutil/translate/Utils.java: ## @@ -123,7 +123,7 @@ static String formatValueCommon(String in) { result = ESCAPE_LEADING_SPACE.ma

[GitHub] [tomcat] markt-asf commented on a diff in pull request #581: Speedup by removing non pattern replaceAll with constant arg

2023-02-02 Thread via GitHub
markt-asf commented on code in PR #581: URL: https://github.com/apache/tomcat/pull/581#discussion_r1094893763 ## java/org/apache/tomcat/buildutil/translate/Utils.java: ## @@ -123,7 +123,7 @@ static String formatValueCommon(String in) { result = ESCAPE_LEADING_SPACE.ma

[GitHub] [tomcat] tbw777 commented on pull request #581: Speedup by removing non pattern replaceAll with constant arg

2023-02-02 Thread via GitHub
tbw777 commented on PR #581: URL: https://github.com/apache/tomcat/pull/581#issuecomment-1414189316 @markt-asf Branch was updated and https://gist.github.com/tbw777/8a6ef60af21487c5faec67037099fd0b also Check please. -- This is an automated message from the Apache Git Service. To r

[GitHub] [tomcat] gksxodnd007 commented on pull request #579: Add activateDropConnection config to choose drop connection by http status code

2023-02-02 Thread via GitHub
gksxodnd007 commented on PR #579: URL: https://github.com/apache/tomcat/pull/579#issuecomment-1414693058 @markt-asf I see the reactor netty code to check how they close the connection when the current request was not fully read. they also close the connection even though that is keep-

[GitHub] [tomcat] rmaucher commented on pull request #579: Add activateDropConnection config to choose drop connection by http status code

2023-02-03 Thread via GitHub
rmaucher commented on PR #579: URL: https://github.com/apache/tomcat/pull/579#issuecomment-1415375850 Of course, some instances of these status codes would be "ok" to recover from, but Mark is actually right: it is not going to be deterministic. Also it is not possible to add "defensive"

[GitHub] [tomcat] markt-asf commented on a diff in pull request #581: Speedup by removing non pattern replaceAll with constant arg

2023-02-03 Thread via GitHub
markt-asf commented on code in PR #581: URL: https://github.com/apache/tomcat/pull/581#discussion_r1095639347 ## java/org/apache/tomcat/buildutil/translate/Utils.java: ## @@ -123,7 +123,7 @@ static String formatValueCommon(String in) { result = ESCAPE_LEADING_SPACE.ma

[GitHub] [tomcat] markt-asf merged pull request #581: Speedup by removing non pattern replaceAll with constant arg

2023-02-03 Thread via GitHub
markt-asf merged PR #581: URL: https://github.com/apache/tomcat/pull/581 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.o

[GitHub] [tomcat] ChristopherSchultz commented on pull request #581: Speedup by removing non pattern replaceAll with constant arg

2023-02-03 Thread via GitHub
ChristopherSchultz commented on PR #581: URL: https://github.com/apache/tomcat/pull/581#issuecomment-1416015385 There isn't much of a difference between `String.replace` and `String.replaceAll`. They both use regular expressions under the hood. Java's `Pattern` class has a special case for

[GitHub] [tomcat] ChristopherSchultz commented on pull request #581: Speedup by removing non pattern replaceAll with constant arg

2023-02-03 Thread via GitHub
ChristopherSchultz commented on PR #581: URL: https://github.com/apache/tomcat/pull/581#issuecomment-1416017516 I think this "performance improvement" is not an improvement and doesn't affect performance in any meaningful way. -- This is an automated message from the Apache Git Service. T

[GitHub] [tomcat] ChristopherSchultz commented on pull request #581: Speedup by removing non pattern replaceAll with constant arg

2023-02-03 Thread via GitHub
ChristopherSchultz commented on PR #581: URL: https://github.com/apache/tomcat/pull/581#issuecomment-1416024123 Apologies: my comments are rubbish after Java 9. Please forgive the noise. -- This is an automated message from the Apache Git Service. To respond to the message, please log on t

[GitHub] [tomcat] gksxodnd007 commented on pull request #579: Add activateDropConnection config to choose drop connection by http status code

2023-02-03 Thread via GitHub
gksxodnd007 commented on PR #579: URL: https://github.com/apache/tomcat/pull/579#issuecomment-1416087598 @rmaucher thank you for your explanation :) I understand. is there any better way that reuses the connection for utilizing computing resources? -- This is an automated message fro

[GitHub] [tomcat] markt-asf commented on pull request #579: Add activateDropConnection config to choose drop connection by http status code

2023-02-03 Thread via GitHub
markt-asf commented on PR #579: URL: https://github.com/apache/tomcat/pull/579#issuecomment-1416093124 My suggestion at this point would be to use custom 4xx and 5xx status codes in the application rather than re-using known codes. -- This is an automated message from the Apache Git Servi

[GitHub] [tomcat] gksxodnd007 commented on pull request #579: Add activateDropConnection config to choose drop connection by http status code

2023-02-03 Thread via GitHub
gksxodnd007 commented on PR #579: URL: https://github.com/apache/tomcat/pull/579#issuecomment-1416100562 @markt-asf I'm sorry, but I'll follow your opinion. and I learn about the request smuggling risks while communication with you. thank you very much :) -- This is an automated messa

[GitHub] [tomcat] gksxodnd007 closed pull request #579: Add activateDropConnection config to choose drop connection by http status code

2023-02-05 Thread via GitHub
gksxodnd007 closed pull request #579: Add activateDropConnection config to choose drop connection by http status code URL: https://github.com/apache/tomcat/pull/579 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL

[GitHub] [tomcat] tbw777 opened a new pull request, #583: Replaced old time API

2023-02-06 Thread via GitHub
tbw777 opened a new pull request, #583: URL: https://github.com/apache/tomcat/pull/583 SimpleDateFormatter isnt thread safe and deprecated with new jvm8 time API -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL

[GitHub] [tomcat] markt-asf commented on pull request #579: Add activateDropConnection config to choose drop connection by http status code

2023-02-07 Thread via GitHub
markt-asf commented on PR #579: URL: https://github.com/apache/tomcat/pull/579#issuecomment-1420408534 No need for an apology. This has been a useful discussion. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL

[GitHub] [tomcat] aooohan merged pull request #584: Use filtersets for IDE config libs and versioning

2023-02-08 Thread via GitHub
aooohan merged PR #584: URL: https://github.com/apache/tomcat/pull/584 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

[GitHub] [tomcat] aooohan commented on pull request #584: Use filtersets for IDE config libs and versioning

2023-02-09 Thread via GitHub
aooohan commented on PR #584: URL: https://github.com/apache/tomcat/pull/584#issuecomment-1423869152 Thanks, I've cherry-picked this commit to other branch and make some minor modification. -- This is an automated message from the Apache Git Service. To respond to the message, please log

[GitHub] [tomcat] rmaucher commented on pull request #506: Adding Redirect and Proxy Error Reporting Valves

2023-02-09 Thread via GitHub
rmaucher commented on PR #506: URL: https://github.com/apache/tomcat/pull/506#issuecomment-1424311002 I had a look at it and ended up merging the feature as https://github.com/apache/tomcat/commit/2c2a1bd248b1ee200a0898c30e355802f0a6f7a6 We'll see what the final feedback on it is ... --

[GitHub] [tomcat] rmaucher closed pull request #506: Adding Redirect and Proxy Error Reporting Valves

2023-02-09 Thread via GitHub
rmaucher closed pull request #506: Adding Redirect and Proxy Error Reporting Valves URL: https://github.com/apache/tomcat/pull/506 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific commen

[GitHub] [tomcat] Madfarm opened a new pull request, #585: Update README.md

2023-02-09 Thread via GitHub
Madfarm opened a new pull request, #585: URL: https://github.com/apache/tomcat/pull/585 You can deny this; I had to create a pull request for a school project -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL abo

[GitHub] [tomcat] aooohan closed pull request #585: Update README.md

2023-02-09 Thread via GitHub
aooohan closed pull request #585: Update README.md URL: https://github.com/apache/tomcat/pull/585 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-un

[GitHub] [tomcat] aooohan commented on pull request #587: Removed unused assignments

2023-02-10 Thread via GitHub
aooohan commented on PR #587: URL: https://github.com/apache/tomcat/pull/587#issuecomment-1425410871 -1 I don't think this change makes sense to do that, the current code is a bit more intuitive. As a reminder, when you propose a PR, we hope you will add some description to avoid wast

[GitHub] [tomcat] aooohan closed pull request #587: Removed unused assignments

2023-02-10 Thread via GitHub
aooohan closed pull request #587: Removed unused assignments URL: https://github.com/apache/tomcat/pull/587 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-ma

[GitHub] [tomcat] aooohan merged pull request #588: Removed object creation

2023-02-10 Thread via GitHub
aooohan merged PR #588: URL: https://github.com/apache/tomcat/pull/588 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

[GitHub] [tomcat] aooohan commented on a diff in pull request #590: Closing ExecutorService with try-with-resources and other

2023-02-10 Thread via GitHub
aooohan commented on code in PR #590: URL: https://github.com/apache/tomcat/pull/590#discussion_r1102455984 ## java/org/apache/tomcat/util/http/fileupload/util/Streams.java: ## @@ -106,12 +106,12 @@ public static long copy(final InputStream inputStream, }

[GitHub] [tomcat] aooohan merged pull request #590: Closing ExecutorService with try-with-resources and other

2023-02-10 Thread via GitHub
aooohan merged PR #590: URL: https://github.com/apache/tomcat/pull/590 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

[GitHub] [tomcat-native] dsoumis opened a new pull request, #16: Update build.xml with new year

2023-02-10 Thread via GitHub
dsoumis opened a new pull request, #16: URL: https://github.com/apache/tomcat-native/pull/16 Update build.xml with new year. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment.

[GitHub] [tomcat-native] markt-asf closed pull request #16: Update build.xml with new year

2023-02-10 Thread via GitHub
markt-asf closed pull request #16: Update build.xml with new year URL: https://github.com/apache/tomcat-native/pull/16 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubs

[GitHub] [tomcat-native] markt-asf commented on pull request #16: Update build.xml with new year

2023-02-10 Thread via GitHub
markt-asf commented on PR #16: URL: https://github.com/apache/tomcat-native/pull/16#issuecomment-1425572722 Thanks for spotting this. Better to automate this as I'll just forget to update it again next year. I'll copy the config to do this from the Tomcat 11.0.x build. -- This is an au

[GitHub] [tomcat] tbw777 commented on pull request #590: Closing ExecutorService with try-with-resources and other

2023-02-10 Thread via GitHub
tbw777 commented on PR #590: URL: https://github.com/apache/tomcat/pull/590#issuecomment-1426250991 @aooohan ``` ExecutorService ... Since: 19 ... default void close() { ``` -- This is an automated message from the Apache Git Service. To respond to the message, pl

[GitHub] [tomcat] aooohan commented on pull request #589: XSD patterns normalization

2023-02-13 Thread via GitHub
aooohan commented on PR #589: URL: https://github.com/apache/tomcat/pull/589#issuecomment-1427559632 We are not able to modify these files, maybe you should report this to [Jakarta project](https://github.com/jakartaee). -- This is an automated message from the Apache Git Service. To res

[GitHub] [tomcat] aooohan closed pull request #589: XSD patterns normalization

2023-02-13 Thread via GitHub
aooohan closed pull request #589: XSD patterns normalization URL: https://github.com/apache/tomcat/pull/589 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-ma

[GitHub] [tomcat] tbw777 commented on pull request #589: XSD patterns normalization

2023-02-13 Thread via GitHub
tbw777 commented on PR #589: URL: https://github.com/apache/tomcat/pull/589#issuecomment-1427636757 @aooohan ty -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscri

[GitHub] [tomcat] markt-asf commented on pull request #586: Fixed closing serverSocket in doCloseServerSocket()

2023-02-14 Thread via GitHub
markt-asf commented on PR #586: URL: https://github.com/apache/tomcat/pull/586#issuecomment-1429675397 Thanks for the report. Fixed slightly differently (effectively the same code) to align with the existing NIO2 code. -- This is an automated message from the Apache Git Service. To respon

[GitHub] [tomcat] markt-asf closed pull request #586: Fixed closing serverSocket in doCloseServerSocket()

2023-02-14 Thread via GitHub
markt-asf closed pull request #586: Fixed closing serverSocket in doCloseServerSocket() URL: https://github.com/apache/tomcat/pull/586 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific co

[GitHub] [tomcat] markt-asf commented on a diff in pull request #583: Replaced old time API

2023-02-14 Thread via GitHub
markt-asf commented on code in PR #583: URL: https://github.com/apache/tomcat/pull/583#discussion_r110573 ## java/org/apache/catalina/filters/RequestDumperFilter.java: ## @@ -56,12 +59,13 @@ public class RequestDumperFilter extends GenericFilter { private static final S

[GitHub] [tomcat] markt-asf commented on pull request #582: Enabled headless build configuration

2023-02-14 Thread via GitHub
markt-asf commented on PR #582: URL: https://github.com/apache/tomcat/pull/582#issuecomment-1429706205 What problem is this PR trying to solve? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the

[GitHub] [tomcat] tbw777 commented on pull request #582: Enabled headless build configuration

2023-02-14 Thread via GitHub
tbw777 commented on PR #582: URL: https://github.com/apache/tomcat/pull/582#issuecomment-1429719724 no problem, just selecting less jvm api to work -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to

[GitHub] [tomcat] ChristopherSchultz commented on pull request #582: Enabled headless build configuration

2023-02-14 Thread via GitHub
ChristopherSchultz commented on PR #582: URL: https://github.com/apache/tomcat/pull/582#issuecomment-1429782733 If no code requests anything AWT-related, then the headless config of the JVM makes no difference. I see no improvement here at all, just added lines to an already complex build s

[GitHub] [tomcat] tbw777 commented on pull request #582: Enabled headless build configuration

2023-02-14 Thread via GitHub
tbw777 commented on PR #582: URL: https://github.com/apache/tomcat/pull/582#issuecomment-1429800793 Also this is guarantee that no awt components used -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go

[GitHub] [tomcat] markt-asf commented on pull request #578: Remove redundant modifiers for interface members

2023-02-14 Thread via GitHub
markt-asf commented on PR #578: URL: https://github.com/apache/tomcat/pull/578#issuecomment-1430113794 I've applied this change via a combination of IDE tools and manual review as the CheckStyle test for redundant modifiers covers more than just interface methods. I was initially in

[GitHub] [tomcat] markt-asf closed pull request #578: Remove redundant modifiers for interface members

2023-02-14 Thread via GitHub
markt-asf closed pull request #578: Remove redundant modifiers for interface members URL: https://github.com/apache/tomcat/pull/578 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comme

[GitHub] [tomcat] ChristopherSchultz commented on pull request #582: Enabled headless build configuration

2023-02-14 Thread via GitHub
ChristopherSchultz commented on PR #582: URL: https://github.com/apache/tomcat/pull/582#issuecomment-1430168053 It does not guarantee that no AWT components are used. It only guarantees that anything which requires an actual screen will fail (such as trying to open a Frame, etc.). AWT is st

[GitHub] [tomcat] markt-asf commented on pull request #582: Enabled headless build configuration

2023-02-14 Thread via GitHub
markt-asf commented on PR #582: URL: https://github.com/apache/tomcat/pull/582#issuecomment-1430228290 I don't see any benefit to adding these extra settings. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL abo

[GitHub] [tomcat] markt-asf closed pull request #582: Enabled headless build configuration

2023-02-14 Thread via GitHub
markt-asf closed pull request #582: Enabled headless build configuration URL: https://github.com/apache/tomcat/pull/582 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsub

[GitHub] [tomcat] dsoumis opened a new pull request, #591: Implement more special maps for rewrite valve

2023-02-16 Thread via GitHub
dsoumis opened a new pull request, #591: URL: https://github.com/apache/tomcat/pull/591 Implemented more special maps from https://httpd.apache.org/docs/2.4/rewrite/rewritemap.html as implied by the FIXME tag. Added relevant tests and added ServletMapping to test int: MapType. --

[GitHub] [tomcat] tbw777 closed pull request #583: Replaced old time API

2023-02-17 Thread via GitHub
tbw777 closed pull request #583: Replaced old time API URL: https://github.com/apache/tomcat/pull/583 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: de

[GitHub] [tomcat] tbw777 opened a new pull request, #592: Improved regexp performance: "a-zA-Z0-9_" -> "\w"

2023-02-17 Thread via GitHub
tbw777 opened a new pull request, #592: URL: https://github.com/apache/tomcat/pull/592 https://gist.github.com/tbw777/8ce56d2cc3a0216012362d18b7262eb2 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go

[GitHub] [tomcat] zengwei2000 opened a new pull request, #593: Update CONTRIBUTING.md

2023-02-20 Thread via GitHub
zengwei2000 opened a new pull request, #593: URL: https://github.com/apache/tomcat/pull/593 fix typo -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail:

[GitHub] [tomcat] markt-asf closed pull request #593: Update CONTRIBUTING.md

2023-02-20 Thread via GitHub
markt-asf closed pull request #593: Update CONTRIBUTING.md URL: https://github.com/apache/tomcat/pull/593 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail

[GitHub] [tomcat] markt-asf commented on pull request #593: Update CONTRIBUTING.md

2023-02-20 Thread via GitHub
markt-asf commented on PR #593: URL: https://github.com/apache/tomcat/pull/593#issuecomment-1437964475 That spelling is correct for US English. Given the range of contributors to Tomcat, there is a mix of UK and US English used in the Tomcat docs. -- This is an automated message from t

[GitHub] [tomcat] rmaucher commented on pull request #591: Implement more special maps for rewrite valve

2023-02-22 Thread via GitHub
rmaucher commented on PR #591: URL: https://github.com/apache/tomcat/pull/591#issuecomment-1440111376 I merged it with a lot of changes and cleanups. Thanks. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL abov

[GitHub] [tomcat] rmaucher closed pull request #591: Implement more special maps for rewrite valve

2023-02-22 Thread via GitHub
rmaucher closed pull request #591: Implement more special maps for rewrite valve URL: https://github.com/apache/tomcat/pull/591 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment.

[GitHub] [tomcat] markt-asf commented on a diff in pull request #592: Improved regexp performance: "a-zA-Z0-9_" -> "\w"

2023-02-24 Thread via GitHub
markt-asf commented on code in PR #592: URL: https://github.com/apache/tomcat/pull/592#discussion_r1116803461 ## java/jakarta/servlet/jsp/resources/jspxml.xsd: ## @@ -25,7 +25,7 @@ - + Review Comment: The Tomcat project is unable to change these schema. We have to use

[GitHub] [tomcat] ChristopherSchultz commented on pull request #592: Improved regexp performance: "a-zA-Z0-9_" -> "\w"

2023-02-24 Thread via GitHub
ChristopherSchultz commented on PR #592: URL: https://github.com/apache/tomcat/pull/592#issuecomment-1443631640 I'm curious about performance data when the `\w` has other things added to it, which is the case for all examples in Tomcat. This microbenchmark only compares `[A-Za-z0-9_]` as th

[GitHub] [tomcat] tbw777 commented on pull request #592: Improved regexp performance: "a-zA-Z0-9_" -> "\w"

2023-02-24 Thread via GitHub
tbw777 commented on PR #592: URL: https://github.com/apache/tomcat/pull/592#issuecomment-1444501056 https://gist.github.com/tbw777/cd394ec67a01f9e7e8fe4d0c66d74637 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the UR

[GitHub] [tomcat] ChristopherSchultz commented on pull request #592: Improved regexp performance: "a-zA-Z0-9_" -> "\w"

2023-02-24 Thread via GitHub
ChristopherSchultz commented on PR #592: URL: https://github.com/apache/tomcat/pull/592#issuecomment-1444608082 Thanks @tbw777 for the updated micro-benchmarks. I agree that the performance improvement is significant enough to warrant a change to Tomcat. -- This is an automated message fr

[GitHub] [tomcat] tbw777 commented on pull request #592: Improved regexp performance: "a-zA-Z0-9_" -> "\w"

2023-02-24 Thread via GitHub
tbw777 commented on PR #592: URL: https://github.com/apache/tomcat/pull/592#issuecomment-1445017914 Compile speed https://gist.github.com/tbw777/6a6303f64894e65a160d3f6321685d27 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitH

[GitHub] [tomcat-jakartaee-migration] sharmanalin59 opened a new issue, #43: The AJP Connector is configured with secretRequired="true"

2023-02-27 Thread via GitHub
sharmanalin59 opened a new issue, #43: URL: https://github.com/apache/tomcat-jakartaee-migration/issues/43 Kindly help with the below issue-: 25-Feb-2023 00:18:50.221 SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to start component [Connector[AJP

[GitHub] [tomcat-jakartaee-migration] markt-asf commented on issue #43: The AJP Connector is configured with secretRequired="true"

2023-02-27 Thread via GitHub
markt-asf commented on issue #43: URL: https://github.com/apache/tomcat-jakartaee-migration/issues/43#issuecomment-1445967136 Wrong project, wrong forum. You want the Tomcat users mailing list: https://tomcat.apache.org/lists.html#tomcat-users -- This is an automated message fro

[GitHub] [tomcat-jakartaee-migration] markt-asf closed issue #43: The AJP Connector is configured with secretRequired="true"

2023-02-27 Thread via GitHub
markt-asf closed issue #43: The AJP Connector is configured with secretRequired="true" URL: https://github.com/apache/tomcat-jakartaee-migration/issues/43 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to

[GitHub] [tomcat-jakartaee-migration] sharmanalin59 commented on issue #43: The AJP Connector is configured with secretRequired="true"

2023-02-27 Thread via GitHub
sharmanalin59 commented on issue #43: URL: https://github.com/apache/tomcat-jakartaee-migration/issues/43#issuecomment-1445973344 Which is the right forum for tomcat -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the

[GitHub] [tomcat-jakartaee-migration] markt-asf commented on issue #43: The AJP Connector is configured with secretRequired="true"

2023-02-27 Thread via GitHub
markt-asf commented on issue #43: URL: https://github.com/apache/tomcat-jakartaee-migration/issues/43#issuecomment-1446007408 Please read my previous comment. This is the issue tracker for the Tomcat migration tool for Jakarta EE, not Tomcat. Tomcat questions should be directed to th

[GitHub] [tomcat-jakartaee-migration] sharmanalin59 commented on issue #43: The AJP Connector is configured with secretRequired="true"

2023-02-27 Thread via GitHub
sharmanalin59 commented on issue #43: URL: https://github.com/apache/tomcat-jakartaee-migration/issues/43#issuecomment-1446063343 what is mailing list? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to

[GitHub] [tomcat-jakartaee-migration] markt-asf commented on issue #43: The AJP Connector is configured with secretRequired="true"

2023-02-27 Thread via GitHub
markt-asf commented on issue #43: URL: https://github.com/apache/tomcat-jakartaee-migration/issues/43#issuecomment-1446069013 https://tomcat.apache.org/lists.html#tomcat-users -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub a

[GitHub] [tomcat-training] dependabot[bot] opened a new pull request, #13: Bump minimist from 0.0.8 to 1.2.8

2023-02-27 Thread via GitHub
dependabot[bot] opened a new pull request, #13: URL: https://github.com/apache/tomcat-training/pull/13 Bumps [minimist](https://github.com/minimistjs/minimist) from 0.0.8 to 1.2.8. Changelog Sourced from https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md";>minimist's cha

[GitHub] [tomcat-training] dependabot[bot] commented on pull request #3: Bump minimist from 0.0.8 to 1.2.6

2023-02-27 Thread via GitHub
dependabot[bot] commented on PR #3: URL: https://github.com/apache/tomcat-training/pull/3#issuecomment-1447486061 Superseded by #13. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific c

[GitHub] [tomcat-training] dependabot[bot] closed pull request #3: Bump minimist from 0.0.8 to 1.2.6

2023-02-27 Thread via GitHub
dependabot[bot] closed pull request #3: Bump minimist from 0.0.8 to 1.2.6 URL: https://github.com/apache/tomcat-training/pull/3 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment.

[GitHub] [tomcat] pangxianhai opened a new pull request, #594: Update CoyoteAdapter.java

2023-03-02 Thread via GitHub
pangxianhai opened a new pull request, #594: URL: https://github.com/apache/tomcat/pull/594 we have a problem at function parseSessionCookiesId. If the request has two JSESSIONID on the Cookie. The session will init twice. So request.isRequestedSessionIdValid() will be invoked. But at req

[GitHub] [tomcat] pangxianhai commented on pull request #594: Update CoyoteAdapter.java

2023-03-02 Thread via GitHub
pangxianhai commented on PR #594: URL: https://github.com/apache/tomcat/pull/594#issuecomment-1452803563 we have a problem at function parseSessionCookiesId. If the request has two JSESSIONID on the Cookie. The session will init twice. So request.isRequestedSessionIdValid() will be invoked.

[GitHub] [tomcat] markt-asf commented on pull request #594: Update CoyoteAdapter.java

2023-03-02 Thread via GitHub
markt-asf commented on PR #594: URL: https://github.com/apache/tomcat/pull/594#issuecomment-1453068854 Thanks for the PR. I understand the problem but this isn't the right fix. It will break apps when there are two session cookies and the second one is the only valid one. -- This is an a

[GitHub] [tomcat] rmaucher commented on pull request #539: JsonAccessLogValve: Add valve for structured logging

2023-03-03 Thread via GitHub
rmaucher commented on PR #539: URL: https://github.com/apache/tomcat/pull/539#issuecomment-1453257058 I merged this with significant modifications. Thanks. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above

[GitHub] [tomcat] rmaucher closed pull request #539: JsonAccessLogValve: Add valve for structured logging

2023-03-03 Thread via GitHub
rmaucher closed pull request #539: JsonAccessLogValve: Add valve for structured logging URL: https://github.com/apache/tomcat/pull/539 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific co

[GitHub] [tomcat] happyhua commented on pull request #581: Speedup by removing non pattern replaceAll with constant arg

2023-03-04 Thread via GitHub
happyhua commented on PR #581: URL: https://github.com/apache/tomcat/pull/581#issuecomment-1454685803 A replaceAll -> replace change in for example `java/org/apache/tomcat/buildutil/translate/Utils.java` can produce different output. ``` String source = "1\t2\t3";

[GitHub] [tomcat] aooohan commented on pull request #595: Exception message error

2023-03-06 Thread via GitHub
aooohan commented on PR #595: URL: https://github.com/apache/tomcat/pull/595#issuecomment-1457597852 Thanks for reporting this. However, I found differences between this file and spec, so I will update it to align with spec. -- This is an automated message from the Apache Git Service. To

[GitHub] [tomcat] aooohan closed pull request #595: Exception message error

2023-03-06 Thread via GitHub
aooohan closed pull request #595: Exception message error URL: https://github.com/apache/tomcat/pull/595 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail:

[GitHub] [tomcat-jakartaee-migration] jbisotti opened a new issue, #44: Does this work tool work at the source or binary level?

2023-03-07 Thread via GitHub
jbisotti opened a new issue, #44: URL: https://github.com/apache/tomcat-jakartaee-migration/issues/44 From the documentation, it is unclear to me if this tools updates source code or if it manipulates bytecode. Which is it? Thanks. -- This is an automated message from the Apache Git Servi

[GitHub] [tomcat-jakartaee-migration] ebourg commented on issue #44: Does this work tool work at the source or binary level?

2023-03-07 Thread via GitHub
ebourg commented on issue #44: URL: https://github.com/apache/tomcat-jakartaee-migration/issues/44#issuecomment-1459025587 It works at both source and binary level, recursively. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub

[GitHub] [tomcat-jakartaee-migration] markt-asf closed issue #44: Does this work tool work at the source or binary level?

2023-03-08 Thread via GitHub
markt-asf closed issue #44: Does this work tool work at the source or binary level? URL: https://github.com/apache/tomcat-jakartaee-migration/issues/44 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go t

[GitHub] [tomcat] ChristopherSchultz opened a new pull request, #596: Use SELECT...FOR UPDATE to update session data in the database instead of DELETE, INSERT.

2023-03-08 Thread via GitHub
ChristopherSchultz opened a new pull request, #596: URL: https://github.com/apache/tomcat/pull/596 I have only compile-tested this; I wanted to get feedback on the approach, how to handle errors, etc. -- This is an automated message from the Apache Git Service. To respond to the message,

[GitHub] [tomcat] ChristopherSchultz opened a new pull request, #597: Use a deep copy of query stats whose values won't change during sorting.

2023-03-08 Thread via GitHub
ChristopherSchultz opened a new pull request, #597: URL: https://github.com/apache/tomcat/pull/597 Fixes https://bz.apache.org/bugzilla/show_bug.cgi?id=58489 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL abov

[GitHub] [tomcat] isapir commented on pull request #596: Use SELECT...FOR UPDATE to update session data in the database instead of DELETE, INSERT.

2023-03-08 Thread via GitHub
isapir commented on PR #596: URL: https://github.com/apache/tomcat/pull/596#issuecomment-1460841013 @ChristopherSchultz Is there a list of supported database systems with which the DataSourceStore is compatible? Are you sure that they all support "SELECT FOR UPDATE"? I tried to look that

[GitHub] [tomcat] isapir commented on a diff in pull request #596: Use SELECT...FOR UPDATE to update session data in the database instead of DELETE, INSERT.

2023-03-08 Thread via GitHub
isapir commented on code in PR #596: URL: https://github.com/apache/tomcat/pull/596#discussion_r1130013002 ## java/org/apache/catalina/session/DataSourceStore.java: ## @@ -626,15 +626,77 @@ public void save(Session session) throws IOException { byte[] obs =

[GitHub] [tomcat] aooohan commented on a diff in pull request #596: Use SELECT...FOR UPDATE to update session data in the database instead of DELETE, INSERT.

2023-03-08 Thread via GitHub
aooohan commented on code in PR #596: URL: https://github.com/apache/tomcat/pull/596#discussion_r1130309107 ## java/org/apache/catalina/session/DataSourceStore.java: ## @@ -626,15 +626,77 @@ public void save(Session session) throws IOException { byte[] obs =

[GitHub] [tomcat] ChristopherSchultz commented on pull request #596: Use SELECT...FOR UPDATE to update session data in the database instead of DELETE, INSERT.

2023-03-09 Thread via GitHub
ChristopherSchultz commented on PR #596: URL: https://github.com/apache/tomcat/pull/596#issuecomment-1462052065 > @ChristopherSchultz Is there a list of supported database systems with which the DataSourceStore is compatible? Are you sure that they all support "SELECT FOR UPDATE"? I tried t

[GitHub] [tomcat] ChristopherSchultz commented on a diff in pull request #596: Use SELECT...FOR UPDATE to update session data in the database instead of DELETE, INSERT.

2023-03-09 Thread via GitHub
ChristopherSchultz commented on code in PR #596: URL: https://github.com/apache/tomcat/pull/596#discussion_r1131019399 ## java/org/apache/catalina/session/DataSourceStore.java: ## @@ -626,15 +626,77 @@ public void save(Session session) throws IOException { b

[GitHub] [tomcat] ChristopherSchultz commented on a diff in pull request #596: Use SELECT...FOR UPDATE to update session data in the database instead of DELETE, INSERT.

2023-03-09 Thread via GitHub
ChristopherSchultz commented on code in PR #596: URL: https://github.com/apache/tomcat/pull/596#discussion_r1131033698 ## java/org/apache/catalina/session/DataSourceStore.java: ## @@ -626,15 +626,77 @@ public void save(Session session) throws IOException { b

[GitHub] [tomcat] isapir commented on a diff in pull request #596: Use SELECT...FOR UPDATE to update session data in the database instead of DELETE, INSERT.

2023-03-09 Thread via GitHub
isapir commented on code in PR #596: URL: https://github.com/apache/tomcat/pull/596#discussion_r1131364805 ## java/org/apache/catalina/session/DataSourceStore.java: ## @@ -626,15 +626,77 @@ public void save(Session session) throws IOException { byte[] obs =

[GitHub] [tomcat] isapir commented on pull request #596: Use SELECT...FOR UPDATE to update session data in the database instead of DELETE, INSERT.

2023-03-09 Thread via GitHub
isapir commented on PR #596: URL: https://github.com/apache/tomcat/pull/596#issuecomment-1462467192 Yeah, I guess that site is not up to date. I also used SELECT FOR UPDATE in MySQL 5.7. There is also INSERT ON CONFLICT UPDATE support in MySQL and Postgres, but it would be difficult

[GitHub] [tomcat] aooohan commented on pull request #596: Use SELECT...FOR UPDATE to update session data in the database instead of DELETE, INSERT.

2023-03-09 Thread via GitHub
aooohan commented on PR #596: URL: https://github.com/apache/tomcat/pull/596#issuecomment-1463201626 I have a question that why we don't add a real **primary key**(auto-increment) to solve the problem that primary key constraint violation when insert data to database simultaneously? And we

[GitHub] [tomcat] aooohan closed pull request #592: Improved regexp performance: "a-zA-Z0-9_" -> "\w"

2023-03-09 Thread via GitHub
aooohan closed pull request #592: Improved regexp performance: "a-zA-Z0-9_" -> "\w" URL: https://github.com/apache/tomcat/pull/592 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific commen

[GitHub] [tomcat] aooohan commented on pull request #592: Improved regexp performance: "a-zA-Z0-9_" -> "\w"

2023-03-09 Thread via GitHub
aooohan commented on PR #592: URL: https://github.com/apache/tomcat/pull/592#issuecomment-1463387623 Merge manually, thanks. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment.

[GitHub] [tomcat] ChristopherSchultz commented on pull request #596: Use SELECT...FOR UPDATE to update session data in the database instead of DELETE, INSERT.

2023-03-10 Thread via GitHub
ChristopherSchultz commented on PR #596: URL: https://github.com/apache/tomcat/pull/596#issuecomment-1463902816 The problem is that there is a window of opportunity between the existing `DELETE` and `INSERT` where the `session_id` column (which is `UNIQUE` or equivalent) can be `INSERT`ed b

[GitHub] [tomcat] FSchumacher commented on a diff in pull request #597: Use a deep copy of query stats whose values won't change during sorting.

2023-03-11 Thread via GitHub
FSchumacher commented on code in PR #597: URL: https://github.com/apache/tomcat/pull/597#discussion_r1133086091 ## modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/SlowQueryReport.java: ## @@ -222,19 +222,55 @@ protected QueryStats getQueryStats(String sql

[GitHub] [tomcat] ChristopherSchultz commented on a diff in pull request #597: Use a deep copy of query stats whose values won't change during sorting.

2023-03-11 Thread via GitHub
ChristopherSchultz commented on code in PR #597: URL: https://github.com/apache/tomcat/pull/597#discussion_r1133119845 ## modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/SlowQueryReport.java: ## @@ -222,19 +222,55 @@ protected QueryStats getQueryStats(Str

[GitHub] [tomcat] ChristopherSchultz commented on pull request #596: Use SELECT...FOR UPDATE to update session data in the database instead of DELETE, INSERT.

2023-03-11 Thread via GitHub
ChristopherSchultz commented on PR #596: URL: https://github.com/apache/tomcat/pull/596#issuecomment-1464952161 I've been thinking about this more and I think it could cause problems for people not using appId+sessionId (or just sessionId) as the primary key for the DB table storing the ses

[GitHub] [tomcat] FSchumacher commented on a diff in pull request #597: Use a deep copy of query stats whose values won't change during sorting.

2023-03-11 Thread via GitHub
FSchumacher commented on code in PR #597: URL: https://github.com/apache/tomcat/pull/597#discussion_r1133134054 ## modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/SlowQueryReport.java: ## @@ -222,19 +222,55 @@ protected QueryStats getQueryStats(String sql

  1   2   3   4   5   6   7   8   9   10   >