Search code examples
javatomcatsslhttpssegment

How to disable fragmentation: Tomcat8 SSL return 2 reassembled SSL segments


We have an application runned on Tomcat8, in the https get response, there're 2 reassembled SSL segments.

Is there any way to turn off it and send ONE TCP packet? enter image description here


Solution

  • In Tomcat6, there're only one packet, size about 2700 bytes. And in Tomcat8, it is 2 reassembled SSL segment. One is 290 containing the header, another is the left with xml body.

    By changing the port to "org.apache.coyote.http11.Http11Nio2Protocol", it works well. I also tried "org.apache.coyote.http11.Http11Nio1Protocol", it will send two packages, and for "org.apache.coyote.http11.Http11Protocol", it will send only one packet.