You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/04/23 10:06:56 UTC

[tomcat] branch main updated: Update error message now root cause and fixed kernel version are known

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 7386fe3041 Update error message now root cause and fixed kernel version are known
7386fe3041 is described below

commit 7386fe3041eada66e1945126c2d1322c369c0f3a
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Sat Apr 23 11:06:29 2022 +0100

    Update error message now root cause and fixed kernel version are known
    
    Thanks to Christopher Gual for the research into this issue.
---
 java/org/apache/tomcat/util/net/LocalStrings.properties       | 2 +-
 java/org/apache/tomcat/util/net/LocalStrings_fr.properties    | 1 -
 java/org/apache/tomcat/util/net/LocalStrings_ja.properties    | 1 -
 java/org/apache/tomcat/util/net/LocalStrings_ko.properties    | 1 -
 java/org/apache/tomcat/util/net/LocalStrings_zh_CN.properties | 1 -
 webapps/docs/changelog.xml                                    | 8 ++++++++
 6 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/java/org/apache/tomcat/util/net/LocalStrings.properties b/java/org/apache/tomcat/util/net/LocalStrings.properties
index 7a93d14c6c..0cac5ed270 100644
--- a/java/org/apache/tomcat/util/net/LocalStrings.properties
+++ b/java/org/apache/tomcat/util/net/LocalStrings.properties
@@ -66,7 +66,7 @@ endpoint.debug.unlock.localFail=Unable to determine local address for [{0}]
 endpoint.debug.unlock.localNone=Failed to unlock acceptor for [{0}] because the local address was not available
 endpoint.duplicateSslHostName=Multiple SSLHostConfig elements were provided for the host name [{0}]. Host names must be unique.
 endpoint.err.close=Caught exception trying to close socket
-endpoint.err.duplicateAccept=Duplicate accept detected. This is a known OS bug. Please consider reporting that you are affected: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1924298
+endpoint.err.duplicateAccept=Duplicate socket accept detected. This is a known Linux kernel bug. The original connection has been processed normally and the duplicate has been ignored. The client should be unaffected. Updating the OS to a version that uses kernel 5.10 or later should fix the duplicate accept bug.
 endpoint.err.handshake=Handshake failed
 endpoint.err.unexpected=Unexpected error processing socket
 endpoint.executor.fail=Executor rejected socket [{0}] for processing
diff --git a/java/org/apache/tomcat/util/net/LocalStrings_fr.properties b/java/org/apache/tomcat/util/net/LocalStrings_fr.properties
index c7af669c11..f070b0ba3b 100644
--- a/java/org/apache/tomcat/util/net/LocalStrings_fr.properties
+++ b/java/org/apache/tomcat/util/net/LocalStrings_fr.properties
@@ -66,7 +66,6 @@ endpoint.debug.unlock.localFail=Impossible de déterminer l''adresse locales pou
 endpoint.debug.unlock.localNone=Impossible de débloquer l''accepteur pour [{0}] car l''adresse locale n''était pas disponible
 endpoint.duplicateSslHostName=Plusieurs éléments SSLHostConfig ont été fournis pour le nom d''hôte [{0}], les noms d''hôte doivent être uniques
 endpoint.err.close=Une exception s'est produite en essayant de fermer le socket
-endpoint.err.duplicateAccept=Une double acceptation a été détectée, ce qui est un bug connu de l'OS. Please consider reporting that you are affected: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1924298
 endpoint.err.handshake=Echec de négociation
 endpoint.err.unexpected=Erreur inattendue lors du traitement du socket
 endpoint.executor.fail=L''exécuteur a rejeté le traitement du socket [{0}]
diff --git a/java/org/apache/tomcat/util/net/LocalStrings_ja.properties b/java/org/apache/tomcat/util/net/LocalStrings_ja.properties
index 88dc8fc5f5..a04efe842b 100644
--- a/java/org/apache/tomcat/util/net/LocalStrings_ja.properties
+++ b/java/org/apache/tomcat/util/net/LocalStrings_ja.properties
@@ -66,7 +66,6 @@ endpoint.debug.unlock.localFail=[{0}]のローカルアドレスを特定でき
 endpoint.debug.unlock.localNone=ローカルアドレスが利用できなかったため、[{0}]のアクセプタのロックを解除できませんでした。
 endpoint.duplicateSslHostName=ホスト名[{0}]に複数のSSLHostConfig要素が提供されました。 ホスト名は一意でなければなりません。
 endpoint.err.close=ソケットをクローズしようとした際に例外が発生しました
-endpoint.err.duplicateAccept=重複した接続受け入れが検出されました。 これは既知のOSのバグです。 影響を受けていることを報告することを検討してください: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1924298
 endpoint.err.handshake=ハンドシェイク失敗
 endpoint.err.unexpected=ソケット処理中の予期せぬエラー
 endpoint.executor.fail=エグゼキュータは処理するソケット [{0}] を拒否しました
diff --git a/java/org/apache/tomcat/util/net/LocalStrings_ko.properties b/java/org/apache/tomcat/util/net/LocalStrings_ko.properties
index f5b4035472..fddc8b1c8c 100644
--- a/java/org/apache/tomcat/util/net/LocalStrings_ko.properties
+++ b/java/org/apache/tomcat/util/net/LocalStrings_ko.properties
@@ -66,7 +66,6 @@ endpoint.debug.unlock.localFail=[{0}]을(를) 위한 로컬 주소를 결정할
 endpoint.debug.unlock.localNone=로컬 주소가 가용하지 않기 때문에, [{0}]을(를) 위한 acceptor의 잠금 상태를 풀지 못했습니다.
 endpoint.duplicateSslHostName=호스트 이름 [{0}]을(를) 위해 여러 개의 SSLHostConfig 엘리먼트들이 제공되었습니다. 호스트 이름들은 반드시 유일해야 합니다.
 endpoint.err.close=소켓을 닫으려 시도하는 중 예외 발생
-endpoint.err.duplicateAccept=이중의 accept가 탐지되었습니다. 이는 이미 알려진 운영체계 버그입니다. 버그 리포팅을 고려해 보십시오: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1924298
 endpoint.err.handshake=Handshake가 실패했습니다.
 endpoint.err.unexpected=소켓 처리 중 예기치 않은 오류 발생
 endpoint.executor.fail=Executor가 소켓 [{0}]을(를) 처리하기를 거부했습니다.
diff --git a/java/org/apache/tomcat/util/net/LocalStrings_zh_CN.properties b/java/org/apache/tomcat/util/net/LocalStrings_zh_CN.properties
index 1c65f8d8b6..afef1f40bf 100644
--- a/java/org/apache/tomcat/util/net/LocalStrings_zh_CN.properties
+++ b/java/org/apache/tomcat/util/net/LocalStrings_zh_CN.properties
@@ -66,7 +66,6 @@ endpoint.debug.unlock.localFail=无法确定[{0}]的本地地址
 endpoint.debug.unlock.localNone=无法解除 [{0}] 的接受器,因为本地地址不可用
 endpoint.duplicateSslHostName=为主机名[{0}]提供了多个SSLHostConfig元素。主机名必须唯一
 endpoint.err.close=抓住异常试图关闭socket
-endpoint.err.duplicateAccept=检测到重复接收。这是一个已知的操作系统错误。请考虑报告您受到影响:https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1924298
 endpoint.err.handshake=握手失败
 endpoint.err.unexpected=处理套接字时意外错误
 endpoint.executor.fail=执行器拒绝了用于处理的套接字[{0}]
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 169f491a8b..be3054eb5e 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -129,6 +129,14 @@
         value of the <code>maxHttpHeaderSize</code> connector attribute will
         be used. Submitted by Zhongming Hua. (remm)
       </add>
+      <fix>
+        The root cause of the Linux kernel duplicate accept bug has been
+        identified along with the version of the kernel that includes the fix.
+        The error message displayed when this bug occurs has been updated to
+        reflect this new information and to advise users to update to a version
+        of the OS that uses kernel 5.10 or later. Thanks to Christopher Gual for
+        the research into this issue. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Jasper">


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org