【问题标题】:Tomcat 9 - long https requestTomcat 9 - 长 https 请求
【发布时间】:2020-07-23 08:42:16
【问题描述】:

我正在发送一个包含媒体且 contentLength 约为 200k 的请求。 发送到非 SSL 端口但发送到 SSL 端口时工作正常 请求的 Reader 的 ByteBuffer 不包含所有请求。 我认为这与 appReadBufSize 设置有关。

较短的 255 字节 SSL 请求可以正常工作 - 所以问题不在于 SSL 但与长度有关。

我想应该可以将长 SSL 请求传递给 Tomcat,但没有 查找有关 SSL 和非 SSL 处理长请求之间差异的任何参考。连接器使用 openssl。

server.xml 连接器定义:

<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />

  <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
           connectionTimeout="20000" maxPostSize="-1"
           maxThreads="150" SSLEnabled="true" sslProtocol="TLS"
           scheme="https" secure="true" clientAuth="false"
           ... SSL keystore definitions/>

请指教, 非常感谢, 尤瓦尔

【问题讨论】:

    标签: ssl openssl tomcat9


    【解决方案1】:

    原来Tomcat确实有bug: http://tomcat.10.x6.nabble.com/Bug-64486-New-Receiving-null-empty-request-body-when-SSL-enabled-td5099846.html

    我在 Ubunto 20 下运行 Tomcat 9.0.31。升级到 Tomcat 9.0.37(手动安装)后问题消失了。

    【讨论】:

      猜你喜欢
      • 2018-08-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-11
      • 2018-12-06
      • 2013-10-22
      • 1970-01-01
      相关资源
      最近更新 更多