From 09cb60d177904adf9a0ac345e920bc2a948c5e06 Mon Sep 17 00:00:00 2001 From: wangjinlei Date: Mon, 15 Oct 2012 18:05:47 +0800 Subject: [PATCH 1/2] 701code --- src/com/qiniu/qbox/up/UpService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/qiniu/qbox/up/UpService.java b/src/com/qiniu/qbox/up/UpService.java index 3f86c6138..7810bfb63 100644 --- a/src/com/qiniu/qbox/up/UpService.java +++ b/src/com/qiniu/qbox/up/UpService.java @@ -143,6 +143,9 @@ public ResumablePutRet resumablePutBlock(RandomAccessFile file, break; // Break to while loop. } + } else if (ret.getStatusCode() == 701) { + progress.context = "" ; + notifier.notify(blockIndex, progress) ; } } catch (IOException e) { e.printStackTrace(); From 31c57ca02f6065f5616470b9fcd790733ee734b3 Mon Sep 17 00:00:00 2001 From: wangjinlei Date: Mon, 15 Oct 2012 18:07:24 +0800 Subject: [PATCH 2/2] 701code --- src/com/qiniu/qbox/up/UpService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/qiniu/qbox/up/UpService.java b/src/com/qiniu/qbox/up/UpService.java index 7810bfb63..fd2cf0897 100644 --- a/src/com/qiniu/qbox/up/UpService.java +++ b/src/com/qiniu/qbox/up/UpService.java @@ -146,6 +146,7 @@ public ResumablePutRet resumablePutBlock(RandomAccessFile file, } else if (ret.getStatusCode() == 701) { progress.context = "" ; notifier.notify(blockIndex, progress) ; + return ret ; } } catch (IOException e) { e.printStackTrace();