Skip to content

Commit ffe26a1

Browse files
committed
On the Mac this call fails every other call. The 1 second wait cause the upload to take a long time and time out. Decreasing the wait time increases the upload speed.
1 parent a69bf5c commit ffe26a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ning/http/multipart/MultipartBody.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ private long handleFilePart(WritableByteChannel target, FilePart filePart) throw
458458
if (nWrite == 0) {
459459
logger.info("Waiting for writing...");
460460
try {
461-
fc.wait(1000);
461+
fc.wait(50);
462462
} catch (InterruptedException e) {
463463
logger.trace(e.getMessage(), e);
464464
}

0 commit comments

Comments
 (0)