CN1 Socket cannot send >7200 bytes
<p>Having trouble sending a large number of bytes from CN1 client to Server. Code below works for anything less than ~7200 bytes. However at byte 7240 the bytes received by the server becomes all zeroes. Not sure why this is occurring, as the connection is still live. The server can still push bytes back just unsure why the client cannot send more data than ~7200. Any advice would be greatly appreciated. Thanks!</p>

<pre><code>if (!outgoingMessages.isEmpty()) {
            Socket.connect("my.server.net", 1234, new SocketConnection() {
                @Override
                public void connectionEstablished(InputStream inStream, OutputStream outStream) {
                    try {
                            byte[] msgBytes = outgoingMessages.pop();
                            outStream.write(ByteConvertor.intToBytes(msgBytes.length));
                            outStream.write(msgBytes);
                    } catch(Exception err) {
                        err.printStackTrace();
                    }
                }

                @Override
                public void connectionError(int errorCode, String message) {
                    System.out.println("Error");
                }
            });
        }
</code></pre>

<p>Clarification: This is specific to com.codename1.io.Socket and not Steve's CN1Sockets lib</p>