On 13/09/2022 08:14, Han Li wrote:
macOS 12.3.1(intel)

Tx. I now see this on Linux and I saw it on Windows yesterday.

Need to figure out what triggered this.

The swallowInput change maybe?

Mark


Han

2022年9月13日 15:09,Mark Thomas <ma...@apache.org> 写道:

Which OS?

I saw the issue on Windows but thought it was a VM / load issue.

Mark


On 13/09/2022 07:16, Han Li wrote:
I'm missing the point, it's only under NIO2 that this problem occurs.
Han
2022年9月13日 14:12,Han Li <li...@apache.org> 写道:

I encountered a test case that would randomly fail.

I executed it individually several times and it failed a high percentage of 
times.

Env Info:
Tomcat Native 2.0.1
OpenSSL 3.0.5
OpenJDK 17.0.2

The following content is log:

Testcase: testClientCertPostZero[OpenSSL] took 6.057 sec
        Caused an ERROR
Received close_notify during handshake
javax.net.ssl.SSLProtocolException: Received close_notify during handshake
        at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:129)
        at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117)
        at 
java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:358)
        at 
java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:314)
        at 
java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:305)
        at 
java.base/sun.security.ssl.Alert$AlertConsumer.consume(Alert.java:250)
        at 
java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:204)
        at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172)
        at 
java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1503)
        at 
java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1474)
        at 
java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:1059)
        at 
java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:244)
        at 
java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
        at 
java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:343)
        at 
java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:791)
        at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:726)
        at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:750)
        at 
java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1688)
        at 
java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
        at 
java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529)
        at 
java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:308)
        at 
org.apache.catalina.startup.TomcatBaseTest.postUrl(TomcatBaseTest.java:794)
        at 
org.apache.catalina.startup.TomcatBaseTest.postUrl(TomcatBaseTest.java:749)
        at 
org.apache.catalina.startup.TomcatBaseTest.postUrl(TomcatBaseTest.java:720)
        at 
org.apache.tomcat.util.net.TestClientCert.doTestClientCertPost(TestClientCert.java:184)
        at 
org.apache.tomcat.util.net.TestClientCert.testClientCertPostZero(TestClientCert.java:133)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

2022年9月13日 05:00,Mark Thomas <ma...@apache.org> 写道:

The proposed Apache Tomcat 10.1.0-M18 release is now available for
voting.

Applications that run on Tomcat 9 and earlier will not run on Tomcat 10 without 
changes. Java EE applications designed for Tomcat 9 and earlier may be placed 
in the $CATALINA_BASE/webapps-javaee directory and Tomcat will automatically 
convert them to Jakarta EE and copy them to the webapps directory.

The notable changes compared to 10.1.0-M17 are:

- Add support for authenticating WebSocket clients with an HTTP forward
proxy when establishing a connection to a WebSocket endpoint via a
forward proxy that requires authentication. Based on a patch provided
by Joe Mokos.

- Various fixes for edge case bugs in EL processing

- Improve host header handling for HTTP/2 requests

For full details, see the change log:
https://nightlies.apache.org/tomcat/tomcat-10.1.x/docs/changelog.html

It can be obtained from:
https://dist.apache.org/repos/dist/dev/tomcat/tomcat-10/v10.1.0-M18/

The Maven staging repo is:
https://repository.apache.org/content/repositories/orgapachetomcat-1388

The tag is:
https://github.com/apache/tomcat/tree/10.1.0-M18
ae9df1bcc169a5b03adea54c8c19ca9bd902e44f


The proposed 10.1.0-M18 release is:
[ ] Broken - do not release
[ ] Beta - go ahead and release as 10.1.0-M18 (beta)

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


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

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



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


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

Reply via email to