Add attribute to cfflush to suppress errors if Response stream was closed

Description

We already have an attribute throwOnError so the default can be true to preserve backwards compatibility

Activity

Igal Sapir 10 March 2024 at 01:33

Duplicate of

Zac Spitzer 1 February 2022 at 15:03

we should also improve the exception, it’s bit cryptic

"UT010029: Stream is closed;UT010029: Stream is closed;lucee.runtime.exp.NativeException: UT010029: Stream is closed

at io.undertow.servlet.spec.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:138)
at io.undertow.servlet.spec.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:130)
at lucee.runtime.writer.CFMLWriterImpl.flushBuffer(CFMLWriterImpl.java:298)
at lucee.runtime.writer.CFMLWriterImpl.flush(CFMLWriterImpl.java:264)

Duplicate

Assignee

Reporter

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Priority

Created 1 January 2022 at 22:16
Updated 10 March 2024 at 01:34
Resolved 10 March 2024 at 01:34