Hi, I'm using CXF as the transport for a SOAP client and am using the
AsyncHTTpConduit to be able to use NTLM authentication but I'm seeing POST
requests after the first attempted one only sending 256k of data.

Additionally I see there are 2 temp files created for the request. One file
contains the entire contents of the POST request but the 2nd file only
contains the first 256k of the request (and is missing the closing soap
envelope tag, etc)

I believe the 256k amount being written to the 2nd file is a result of
IOUtils.copy capping the buffer at 262144 when attempting to write the
cached request content to the 2nd file.

I've tried setting org.apache.cxf.io.CachedOutputStream.Threshold to
something large and see the temp files don't get created, but then the
requests fail for other reasons. Maybe this implicates some concurrency
issues in HTTPAsyncClient or CXF's use of it?



--
View this message in context: 
http://cxf.547215.n5.nabble.com/CXF-IOUtils-truncating-POST-request-content-tp5761619.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to