[wildfly-dev] Behavior of javax.servlet.ServletResponse#isCommitted

Stuart Douglas stuart.w.douglas at gmail.com
Wed Oct 22 00:08:59 EDT 2014


It should be fixed in the latest Undertow build, which should make it into
Wildfly upstream shortly.

On Wed, Oct 22, 2014 at 1:53 AM, Pedro Igor Silva <psilva at redhat.com> wrote:

> Hi,
>
>     I'm using latest build from wildfly upstream/master.
>
>     Would like to know if there is an issue on how Undertow recognize that
> a response is already commited or not.
>
>     My code is setting a header and sending an error like that
>
>         response.setHeader(REQUIRES_AUTHENTICATION_HEADER_NAME,
> AUTHENTICATION_SCHEME_NAME);
>         response.sendError(HttpServletResponse.SC_UNAUTHORIZED);
>
>     and isCommited is always returning "false" after that. To change this
> behavior I have to force a flush, so isCommited returns true.
>
>     Both WildFly 8.1.0.Final and EAP behave differently and isCommited
> returns "true" without requiring a manual flush. Is this an issue ?
>
> Regards.
> Pedro Igor
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20141022/89e4c370/attachment.html 


More information about the wildfly-dev mailing list