Commit 1374f70f authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

Increased proxy transfer buffer size. JM-649

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3790 b35dd754-fafc-0310-a699-88a17e54d16e
parent 67e7f155
/** /**
* $RCSfile$ * $RCSfile$
* $Revision: 1217 $ * $Revision: 3762 $
* $Date: 2005-04-11 18:11:06 -0300 (Mon, 11 Apr 2005) $ * $Date: 2006-04-12 18:07:15 -0500 (Mon, 12 Apr 2005) $
* *
* Copyright (C) 1999-2006 Jive Software. All rights reserved. * Copyright (C) 1999-2006 Jive Software. All rights reserved.
* *
...@@ -43,6 +43,8 @@ public class DefaultProxyTransfer implements ProxyTransfer { ...@@ -43,6 +43,8 @@ public class DefaultProxyTransfer implements ProxyTransfer {
private long amountWritten; private long amountWritten;
private static final int BUFFER_SIZE = 8000;
public DefaultProxyTransfer() { } public DefaultProxyTransfer() { }
...@@ -122,7 +124,7 @@ public class DefaultProxyTransfer implements ProxyTransfer { ...@@ -122,7 +124,7 @@ public class DefaultProxyTransfer implements ProxyTransfer {
InputStream in = getInitiatorSocket().getInputStream(); InputStream in = getInitiatorSocket().getInputStream();
OutputStream out = new ProxyOutputStream(getTargetSocket().getOutputStream()); OutputStream out = new ProxyOutputStream(getTargetSocket().getOutputStream());
final byte[] b = new byte[1000]; final byte[] b = new byte[BUFFER_SIZE];
int count = 0; int count = 0;
amountWritten = 0; amountWritten = 0;
...@@ -157,8 +159,6 @@ public class DefaultProxyTransfer implements ProxyTransfer { ...@@ -157,8 +159,6 @@ public class DefaultProxyTransfer implements ProxyTransfer {
} }
static class ProxyOutputStream extends DataOutputStream { static class ProxyOutputStream extends DataOutputStream {
public ProxyOutputStream(OutputStream out) { public ProxyOutputStream(OutputStream out) {
super(out); super(out);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment