arkanovicz commented on a change in pull request #277: URL: https://github.com/apache/tomcat/pull/277#discussion_r412030387
########## File path: java/org/apache/coyote/Response.java ########## @@ -61,6 +62,11 @@ */ private static final Locale DEFAULT_LOCALE = Locale.getDefault(); + /** + * Helper to log the invalid HTTP/2.0 header error only once per instance + */ + private static AtomicBoolean invalidHeaderWarningEmitted = new AtomicBoolean(false); Review comment: @martin-g It's a langage abuse. Per instance of running tomcat, sorry. Anyhow, @rmaucher suggestion to just throw the exception is simpler, so the AtomicBoolean is deprecated. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org