Re: No way to return error from broken streaming connection?

2021-08-10 Thread Marcin Wisnicki
To make repro easier: https://gist.github.com/mwisnicki/6df71b2b5f7712306fca27bf34c24e94 On Tue, 10 Aug 2021 at 04:00, Marcin Wisnicki wrote: > > However I've noticed that in Tomcat the behaviour can only be achieved > by throwing an exception before close. > If I don't t

Re: No way to return error from broken streaming connection?

2021-08-10 Thread Marcin Wisnicki
e('0') without using exceptions? On Tue, 10 Aug 2021 at 03:27, Marcin Wisnicki wrote: > > Thanks, it seems like it must be one of Spring Boot's filters breaking > it. I should've tried without it first, mea culpa. > In a pure tomcat container it works as you described wh

Re: No way to return error from broken streaming connection?

2021-08-10 Thread Marcin Wisnicki
to clients. I'll move my question to a more appropriate forum. On Tue, 10 Aug 2021 at 02:45, Mark Thomas wrote: > > On 10/08/2021 02:25, Marcin Wisnicki wrote: > > I have a servlet (it's really a SpringBoot controller but it shouldn't > > matter?) in Tomcat 9.0.4

No way to return error from broken streaming connection?

2021-08-09 Thread Marcin Wisnicki
I have a servlet (it's really a SpringBoot controller but it shouldn't matter?) in Tomcat 9.0.46 that streams responses of unknown size to the browser. I've discovered that if the streaming process fails in the middle of the write, the client will simply get an incomplete file and think it was suc