increased ibb block size
This commit is contained in:
parent
4f62793a67
commit
1f43115544
|
@ -39,7 +39,7 @@ public class JingleConnection implements Transferable {
|
||||||
protected static final int JINGLE_STATUS_TRANSMITTING = 5;
|
protected static final int JINGLE_STATUS_TRANSMITTING = 5;
|
||||||
protected static final int JINGLE_STATUS_FAILED = 99;
|
protected static final int JINGLE_STATUS_FAILED = 99;
|
||||||
|
|
||||||
private int ibbBlockSize = 4096;
|
private int ibbBlockSize = 8192;
|
||||||
|
|
||||||
private int mJingleStatus = -1;
|
private int mJingleStatus = -1;
|
||||||
private int mStatus = Transferable.STATUS_UNKNOWN;
|
private int mStatus = Transferable.STATUS_UNKNOWN;
|
||||||
|
|
|
@ -25,7 +25,6 @@ public class JingleInbandTransport extends JingleTransport {
|
||||||
private Account account;
|
private Account account;
|
||||||
private Jid counterpart;
|
private Jid counterpart;
|
||||||
private int blockSize;
|
private int blockSize;
|
||||||
private int bufferSize;
|
|
||||||
private int seq = 0;
|
private int seq = 0;
|
||||||
private String sessionId;
|
private String sessionId;
|
||||||
|
|
||||||
|
@ -58,7 +57,6 @@ public class JingleInbandTransport extends JingleTransport {
|
||||||
this.account = connection.getAccount();
|
this.account = connection.getAccount();
|
||||||
this.counterpart = connection.getCounterPart();
|
this.counterpart = connection.getCounterPart();
|
||||||
this.blockSize = blocksize;
|
this.blockSize = blocksize;
|
||||||
this.bufferSize = blocksize / 4;
|
|
||||||
this.sessionId = sid;
|
this.sessionId = sid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -157,7 +155,7 @@ public class JingleInbandTransport extends JingleTransport {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sendNextBlock() {
|
private void sendNextBlock() {
|
||||||
byte[] buffer = new byte[this.bufferSize];
|
byte[] buffer = new byte[this.blockSize];
|
||||||
try {
|
try {
|
||||||
int count = fileInputStream.read(buffer);
|
int count = fileInputStream.read(buffer);
|
||||||
if (count == -1) {
|
if (count == -1) {
|
||||||
|
|
Loading…
Reference in a new issue