You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ed...@wolfecomputerservices.com on 2020/03/11 15:14:12 UTC

Autoflush is not "working"

Tomcat 9

NetBeans 11.3

Windows 10

 

The JspWriter.autoFlush setting seems to be ignored.  I confired that
isAutoFlush() is true (and it is) but my output (using JspWriter.print()) is
truncated.  If I explicitly put flush() in my output loop, I get all the
data.  Any direction would be appreciated


Re: Autoflush is not "working"

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Ed,

On 3/11/20 11:14, ed@wolfecomputerservices.com wrote:
> Tomcat 9
>
> NetBeans 11.3
>
> Windows 10
>
>
>
> The JspWriter.autoFlush setting seems to be ignored.  I confired
> that isAutoFlush() is true (and it is) but my output (using
> JspWriter.print()) is truncated.  If I explicitly put flush() in my
> output loop, I get all the data.  Any direction would be
> appreciated

Are you ever printing a newline? How much data are you printing? What
is your buffer size?

"autoflush" doesn't flush after every print operation. It only
automatically flushes the buffer when the buffer fills or when the
response has been completed (e.g. the JSP execution completes).

Can you share a sample of what you are doing?

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl5pEZcACgkQHPApP6U8
pFgnxA//SEZ76gk1hdiQSY6HPHZl9OQMfgt+CGQXukocnhe9M6Km3ZMOCby7V5PX
8/aXtWIMHaIiUU8xJtPMSJSfVhYA3SErADloIlAFHuU73BjRiEdgGMv/ObnI6M9I
cVMxPdakYAtJKp2CmoopdXrEs8N+9NegmcgOdKlDerAwel73HR7gif2rEGvZ3EnF
prHWB8Wmw7O3eo6R/YNvR5tiOCWelZVwhUDI6PB5HYAus4BrRkdbYQBEq8qM5Mnv
rMJy23Wto5RZS1uVUemEL9swv4ykoITNasHYnbLIFsilGBrBrI33XAwaS55prNMq
kU4Dqhebhu23S90pzEOAQ/z/H+TJHgSSOyw4dE1eUyrn8Diq8YBuJYrbqo3OfQOw
yCawqmGh7cG+SWDiHaR+0RTrJMNVXzkhL1BaRF2shChMKsmMfLDHlR7lPc+G0ZDF
TBk6pDXysYM6o7HCWx8w4MTlm7KmT40xxJaLI5ZhXvL7+qigg2qIiG/36cyLPf9q
PBCvsWBPp5EpO79Qbe42yEtt+ClrwZfXKpuknBCZDGUH0S8e/uz3kbQruvlofSJ3
Vg8f1cYqgB22hmjZh69nkG5sFgP8ytLB1OBhxaVmGOYF6XdWqVlD5EKTipghxM+C
Al95DpaFPPq6GGv0LcAm1ZTEO3snLWtFBnMq3Vybog49X9NbwUw=
=422W
-----END PGP SIGNATURE-----

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