Hi Benson On Thu, Jan 27, 2011 at 3:29 PM, Benson Margulies <[email protected]>wrote:
> The following was interesting to me, I don't know if it is interesting to > anyone else or worth adding to the doc. > > Client make a JAX-RS call to service via WebClient's 'post' method. > > Service streams a significant amount of data back. > > WebClient.post returns, with status OK, long before server has finished > writing the response. > > If the client then exits before the service finishes writing, the service > will get an EOF exception. > How the client ends up exiting before the server finishes writing the stream ? I suppose if the web client gets the Response back and we have the chunked encoding case and the client does not read the stream, only checks the status and exists, then this failure is kind of expected ? Cheers, Sergey
