Skip to content

Commit 161dd1f

Browse files
committed
The write buffer size in DefaultFileContent is now 8K instead of 4K
1 parent e1db69f commit 161dd1f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ protected void onClose() throws IOException {
217217
/**
218218
* The default buffer size for {@link #write(OutputStream)}.
219219
*/
220-
private static final int WRITE_BUFFER_SIZE = 4096;
220+
private static final int WRITE_BUFFER_SIZE = IOUtils.DEFAULT_BUFFER_SIZE;
221221
private final AbstractFileObject<?> fileObject;
222222

223223
private Map<String, Object> attrs;

src/changes/changes.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ The <action> type attribute can be add,update,fix,remove.
4747
<body>
4848
<release version="2.11.0" date="YYYY-MM-DD" description="This is a feature and maintenance release. Java 8 or later is required.">
4949
<!-- FIX -->
50-
<action dev="ggregory" type="update" due-to="Gary Gregory">Rework FTPClientWrapper.disconnect() to remove any chance of a new connection being created on demand.</action>
50+
<action dev="ggregory" type="fix" due-to="Gary Gregory">Rework FTPClientWrapper.disconnect() to remove any chance of a new connection being created on demand.</action>
51+
<action dev="ggregory" type="update" due-to="Gary Gregory">The write buffer size in DefaultFileContent is now 8K instead of 4K.</action>
5152
<!-- ADD -->
5253
<action dev="ggregory" type="update" due-to="Gary Gregory">Add org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.sendOptions(String, String).</action>
5354
<action dev="ggregory" type="update" due-to="Gary Gregory">Add FtpFileSystemConfigBuilder.getControlEncodingCharset(FileSystemOptions) and deprecate getControlEncoding(FileSystemOptions).</action>

0 commit comments

Comments
 (0)