If a message is too big to be sent as a datagram, fall back to

sending it on the stream.  However, also increase the maximum 
datagram size.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5670 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2009-02-24 22:58:22 +00:00
parent 849aeed79c
commit 028b53df68
2 changed files with 13 additions and 4 deletions
@@ -60,7 +60,7 @@ public class Client
public static final int[] DEFAULT_DATAGRAM_PORTS = { };
/** The maximum size of a datagram. */
public static final int MAX_DATAGRAM_SIZE = 1500;
public static final int MAX_DATAGRAM_SIZE = 8192;
/** Our default maximum outgoing message rate in messages per second. */
public static final int DEFAULT_MSGS_PER_SECOND = 10;