long received = 0;
InputStream in = session.getInputStream(0);
byte[] buffer = new byte[session.getService().getChunkSize()[0]];
StopWatch watch = new StopWatch();
watch.start();
try {
int readBytes;
boolean canceled = false;
while ((readBytes = in.read(buffer)) > 0) {
received += readBytes;