Konstantin,

On 12.10.2013 3:52, Konstantin Preißer wrote:
I am testing tcnative-1.1.29 RC, with Tomcat 8.0.x trunk (r1531461) on
Win7 64-bit. I have HTTPS configured. I can't get any response larger
than 50 kB.
...
Now, this is interesting: I know that 50 kB limit usually smells like
sendfile issue. So I tried to add EITHER useSendfile="true" or
useSendfile="false" to the above configuration, and with either of those
attributes the problem is resolved.

I also tried this now with trunk (r1531312) and Native 1.1.29 RC on Windows 8 
64-bit with Java 1.7.0_40, and can confirm the behavior:
With the above configuration for a SSL HTTP APR connector, I cannot receive the contents of 
"/docs/manager-howto.html", whereas it works if I either add useSendfile="true" or 
useSendfile="false".

Thank you for verifying.

I now re-read the docs, and realized that sendfile is not allowed with HTTPS, so one should always add useSendfile="false" to HTTPS APR connector.

It is strange that useSendfile="true", and not adding attribute useSendfile at all behaves differently, but this is, IMO, minor issue in interpreting server.xml.


Additionally, I regularly got following exceptions and crashes when playing with the 
Drawboard example (using brush to draw on it, or press F5 so that a binary websocket 
message with the PNG image is sent to the browser). They happen independent of the 
presence and value of the "sendFile" attribute, but they do not happen with a 
Non-SSL HTTP APR connector.

Was "sendFile" a typo? It should be "useSendfile".

-Ognjen

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

Reply via email to