Message not sent from server / received by client due to data size?
Posted: 26 Jan 2024, 22:19
Hi Lapo,
I had some issues sending / receiving messages from server to client. We debugged the execution path and we are affirmative that "SFSExtension.send" did get executed since its later trace got printed on log. But the message is never received by the Client. This issue can be random and with our experiments, seems like if you try to send a message with larger data size, it won't get through to the client. We tried to break one message into several smaller pieces and it seemed to work. It will also be more difficult to have the message to get through if the room has been taken up more memory (for example, more people in room, more data saved in room). But regardless, when it happens, there is never any error or exception about this. I believe it's about the message size because I have many other messages sending / receiving smoothly with no problems. It happens only on this one message that contains the state of the room. Our experiment is not huge with only two people in room, with several objects(5 - 6) data. We do use SFSArray inside the message.
Could you possibly think of any factors that would affect message sending / receiving? How would I check on them? What potential solutions could I have? I am running SmartFox on a ec2 VM. It has 2 CPUs, 2GB memory. Thank you very much for any help in advance!
I had some issues sending / receiving messages from server to client. We debugged the execution path and we are affirmative that "SFSExtension.send" did get executed since its later trace got printed on log. But the message is never received by the Client. This issue can be random and with our experiments, seems like if you try to send a message with larger data size, it won't get through to the client. We tried to break one message into several smaller pieces and it seemed to work. It will also be more difficult to have the message to get through if the room has been taken up more memory (for example, more people in room, more data saved in room). But regardless, when it happens, there is never any error or exception about this. I believe it's about the message size because I have many other messages sending / receiving smoothly with no problems. It happens only on this one message that contains the state of the room. Our experiment is not huge with only two people in room, with several objects(5 - 6) data. We do use SFSArray inside the message.
Could you possibly think of any factors that would affect message sending / receiving? How would I check on them? What potential solutions could I have? I am running SmartFox on a ec2 VM. It has 2 CPUs, 2GB memory. Thank you very much for any help in advance!