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:
@ -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;
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user