KBASE-1016 #comment setFixedLengthStreamingMode is the problem, errfreq

Commenting out this line:
conn.setFixedLengthStreamingMode(sizeWrapper[0]);
fixes the problem.

The failure rate is related to the frequency of calls (sleep in ms):
Sleep: 0, failures 0/100
Sleep: 100, failures 1/100
Sleep: 500, failures 20/100
Sleep: 1000, failures 50/100
Sleep: 2000, failures 50/100
Sleep: 3000, failures 50/100
Sleep: 4000, failures 49/100
Sleep: 5000, failures 0/100
Sleep: 6000, failures 0/100