Permalink
Browse files

Properly account for sent message size.

  • Loading branch information...
1 parent 0291795 commit 1bc034b697c92c9f7cf3989e05214e90fafbf1bc @willscott willscott committed May 1, 2012
@@ -557,7 +557,7 @@ public void run() {
packetNum, datagramSize, message.getDescription()));
}
// This is going to get sent, update the queue size
- queueLength -= datagramSize;
+ queueLength -= messageSize + OSF2FMessage.MESSAGE_HEADER_LEN;
// Check if we can fit more packets in there.
} while ((message = messageQueue.peek()) != null
&& datagramSize + message.getMessageSize() <= MAX_DATAGRAM_PAYLOAD_SIZE

0 comments on commit 1bc034b

Please sign in to comment.