Skip to content

Commit

Permalink
2m buf
Browse files Browse the repository at this point in the history
  • Loading branch information
Immueggpain authored and Immueggpain committed Dec 29, 2019
1 parent f26a612 commit a36c376
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.github.immueggpain</groupId>
<artifactId>simple-streaming</artifactId>
<version>0.1.2</version>
<version>0.1.3</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
subcommands = { HelpCommand.class, StreamUpload.class, StreamServer.class, Serve.class })
public class Launcher implements Callable<Void> {

public static final String VERSTR = "0.1.2";
public static final String VERSTR = "0.1.3";
public static final int LOCAL_PORT = 2233;
public static final int LOCAL_OVPN_PORT = 1194;
public static final int BUFLEN = 1024 * 512;
public static final int BUFLEN = 1024 * 1024 * 2;

public static void main(String[] args) {
int exitCode = new CommandLine(new Launcher()).setCaseInsensitiveEnumValuesAllowed(true).execute(args);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private void download_thread() {
private void download_thread(Socket socket) {
try (Socket socket_ = socket) {
OutputStream os = socket.getOutputStream();
CircularByteBuffer buf = new CircularByteBuffer(Launcher.BUFLEN * 8);
CircularByteBuffer buf = new CircularByteBuffer(Launcher.BUFLEN * 4);
byte[] bs = new byte[Launcher.BUFLEN];

// add me to active downloaders
Expand Down

0 comments on commit a36c376

Please sign in to comment.