2005-07-21 jrandom

* Fix in the SDK for a bug which would manifest itself as misrouted
      streaming packets when a destination has many concurrent streaming
      connections (thanks duck!)
    * No more "Graceful shutdown in -18140121441141s"
This commit is contained in:
jrandom
2005-07-21 22:37:14 +00:00
committed by zzz
parent 3563aa2e4d
commit 45767360ab
9 changed files with 36 additions and 7 deletions

View File

@ -27,8 +27,9 @@ public class ByteArray implements Serializable, Comparable {
}
public ByteArray(byte[] data) {
_offset = 0;
_data = data;
_valid = 0;
_valid = (data != null ? data.length : 0);
}
public ByteArray(byte[] data, int offset, int length) {
_data = data;

View File

@ -37,7 +37,8 @@ public class SessionTag extends ByteArray {
}
public void setData(byte val[]) throws IllegalArgumentException {
if (val == null) super.setData(null);
if (val == null)
throw new NullPointerException("SessionTags cannot be null");
if (val.length != BYTE_LENGTH)
throw new IllegalArgumentException("SessionTags must be " + BYTE_LENGTH + " bytes");
super.setData(val);