ASF Bugzilla – Attachment 15331 Details for
Bug 35255
davget ANT task downloads files with size 0 on slow connections
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to use blocking I/O in Get task, as suggested
Get_streamcopy_35255.patch (text/plain), 938 bytes, created by
Martin Kal
on 2005-06-08 11:22:27 UTC
(
hide
)
Description:
Patch to use blocking I/O in Get task, as suggested
Filename:
MIME Type:
Creator:
Martin Kal
Created:
2005-06-08 11:22:27 UTC
Size:
938 bytes
patch
obsolete
>Index: webdavclient/ant/src/java/org/apache/webdav/ant/taskdefs/Get.java >=================================================================== >RCS file: /home/cvs/jakarta-slide/webdavclient/ant/src/java/org/apache/webdav/ant/taskdefs/Get.java,v >retrieving revision 1.3.2.1 >diff -u -r1.3.2.1 Get.java >--- webdavclient/ant/src/java/org/apache/webdav/ant/taskdefs/Get.java 15 Aug 2004 13:01:15 -0000 1.3.2.1 >+++ webdavclient/ant/src/java/org/apache/webdav/ant/taskdefs/Get.java 8 Jun 2005 09:19:43 -0000 >@@ -220,12 +220,10 @@ > writer.close(); > reader.close(); > } else { >- while (in.available() > 0) { >- int cnt = in.read(b, 0, b.length); >- if (cnt > -1) { >- out.write(b, 0, cnt); >- } >- } >+ int cnt; >+ while ((cnt = in.read(b, 0, b.length)) > 0) { >+ out.write(b, 0, cnt); >+ } > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 35255
: 15331