sendBuffersize 10 -> 100

This commit is contained in:
Nikolay Borodin 2024-03-03 15:39:30 +02:00
parent cda8fd684b
commit 007c51c96b
5 changed files with 5 additions and 10 deletions

View file

@ -100,7 +100,7 @@ public class Main {
" Lines starting with the '#' symbol are ignored.",
" --syncPeerBlacklist When the blocked peers file is modified, re-read the file and update the list of blocked peers.",
" This option is useless without the specified file in the 'peerBlacklist' option.",
" --sendBufferSize The packet queue size for sending. The default is 10.",
" --sendBufferSize The packet queue size for sending. The default is 100.",
" --tcpFlush Flush the output stream of the connection after sending each packet.",
" --uploadLimit Maximum upload speed in kb/s. A zero value disables the limit.",
" --downloadLimit Maximum download speed in kb/s. A zero value disables the limit.",

View file

@ -238,9 +238,6 @@
<Properties>
<Property name="text" type="java.lang.String" value="Theme"/>
</Properties>
<AccessibilityProperties>
<Property name="AccessibleContext.accessibleName" type="java.lang.String" value="Theme"/>
</AccessibilityProperties>
</Component>
<Component class="javax.swing.JComboBox" name="cbbTheme">
<Properties>
@ -433,7 +430,7 @@
<Component class="javax.swing.JSpinner" name="spnBufferSize">
<Properties>
<Property name="model" type="javax.swing.SpinnerModel" editor="org.netbeans.modules.form.editors2.SpinnerModelEditor">
<SpinnerModel initial="10" maximum="500" minimum="1" numberType="java.lang.Integer" stepSize="1" type="number"/>
<SpinnerModel initial="100" maximum="10000" minimum="1" numberType="java.lang.Integer" stepSize="1" type="number"/>
</Property>
</Properties>
</Component>

View file

@ -211,8 +211,6 @@ public class OptionWindow extends javax.swing.JDialog {
.addContainerGap(276, Short.MAX_VALUE))
);
jLabel12.getAccessibleContext().setAccessibleName("Theme");
jTabbedPane1.addTab("UI", jPanel4);
jLabel3.setText("VPN IP");
@ -283,7 +281,7 @@ public class OptionWindow extends javax.swing.JDialog {
jLabel8.setText("Send buffer size");
spnBufferSize.setModel(new javax.swing.SpinnerNumberModel(10, 1, 500, 1));
spnBufferSize.setModel(new javax.swing.SpinnerNumberModel(100, 1, 10000, 1));
jLabel9.setText("packets");

View file

@ -47,7 +47,7 @@ public class TCPConnection implements Runnable {
private static final double BUCKET_TIME = 0.5;
private static final int BUCKET_LEN = 10;
public static final int DEFAULT_MAX_QUEUE = 10;
public static final int DEFAULT_MAX_QUEUE = 100;
public static final boolean DEFAULT_TCP_FLUSH = false;
private static final int MAX_PACKET_SIZE = 10 * 1024;

View file

@ -155,7 +155,7 @@ public class ProfileManager {
props.setProperty(defaultName + '.' + "popupChat", "1");
props.setProperty(defaultName + '.' + "sendLimit", "0.0");
props.setProperty(defaultName + '.' + "recLimit", "0.0");
props.setProperty(defaultName + '.' + "sendBufferSize", "10");
props.setProperty(defaultName + '.' + "sendBufferSize", "100");
props.setProperty(defaultName + '.' + "tcpFlush", "0");
}