Forum Navigation
Tango ClusterQueue Message Size > 2048
Posted: 10/05/09 08:17:35Hi,
I'm currently trying to use the Tango ClusterQueue?. If I try to send messages larger than 2048 bytes it always throws "tango.net.cluster.NetworkClient?.ClusterEmptyException?: No appropriate cluster nodes are available" on the client side. I identified that this problem is related to the problem that if the message body string is larger than 2048 the size of the message is set to zero in the ProtocolWriter? which in fact produces an exception in tango.net.cluster.tina.ProtocolReader? in line 140
// may throw an exception if the payload is too large to fit // completely inside the buffer! buffer.slice (size, false);When extending tango.net.cluster.tina.Cluster and changing the GrowBuffer? size of 1024 * 2 to e.g. 1024 * 3 in line 385 everything works well for at least for a message size of 2049.
// this buffer will grow as required to house larger messages buffer = new GrowBuffer (1024 * 2); writer = new ProtocolWriter (buffer);Does anybody knows whats going wrong on here? Its not an issue of the server code its related to the client code. The server works fine with the 1024 * 2 buffer but not the client. Any ideas? Thanks in advance. Tom.