Page 1 of 1

Message to be sent too big?

Posted: 08 Dec 2015, 09:28
by alexcy32
Hello,

How can I check through the log files or another way if a message that user A is trying to send to user B is too big and therefore rejected by the server?

Can the check be done on the client (Flash AS3) side as well? For example will an error show up in Flash for user A if the message is too big?


UPDATE:
I just downloaded the log file and I see the following in it. Does this imply the messages are too big?
08 Dec 2015 | 00:44:04,249 | DEBUG | SocketReader | protocol.binary.BinaryIoHandler | | STATE: WAIT_NEW_PACKET
08 Dec 2015 | 00:44:04,249 | DEBUG | SocketReader | protocol.binary.BinaryIoHandler | | NORMAL SIZED PACKET: 3138
08 Dec 2015 | 00:44:04,249 | DEBUG | SocketReader | protocol.binary.BinaryIoHandler | | NOT ENOUGH DATA, GO AHEAD
08 Dec 2015 | 00:44:04,257 | DEBUG | SocketReader | protocol.binary.BinaryIoHandler | | STATE: WAIT_DATA
08 Dec 2015 | 00:44:04,257 | DEBUG | SocketReader | protocol.binary.BinaryIoHandler | | NOT ENOUGH DATA, GO AHEAD
08 Dec 2015 | 00:44:04,263 | DEBUG | SocketReader | protocol.binary.BinaryIoHandler | | STATE: WAIT_DATA
08 Dec 2015 | 00:44:04,263 | DEBUG | SocketReader | protocol.binary.BinaryIoHandler | | NOT ENOUGH DATA, GO AHEAD
08 Dec 2015 | 00:44:04,269 | DEBUG | SocketReader | protocol.binary.BinaryIoHandler | | Binary size: 69
6B E3 45 83 ED CC F4 F1 6F E5 B8 74 F3 73 F1 9C k.E.....o..t.s..
EB 40 49 9B 69 5F F1 96 2B 70 F1 5A 49 0E BC DF .@I.i_..+p.ZI...
EF 5F 20 5E F5 60 FF D1 6C 1A AE C8 33 06 01 8A ._.^.`..l...3...
A6 F4 95 B3 73 ED FE F8 F6 F8 E8 5D FA C3 BB FF ....s......]....
00 85 22 C4 32 ..".2

08 Dec 2015 | 00:44:04,269 | DEBUG | SocketReader | protocol.binary.BinaryIoHandler | | STATE: WAIT_DATA
08 Dec 2015 | 00:44:04,269 | DEBUG | SocketReader | protocol.binary.BinaryIoHandler | | <<< PACKET COMPLETE >>>
08 Dec 2015 | 00:44:04,269 | DEBUG | SocketReader | protocol.binary.BinaryIoHandler | | Original: 3138, Deflated: 14108, Comp. Ratio: 78%, Time: 0.25069ms.
08 Dec 2015 | 00:44:04,275 | DEBUG | SFSWorker:Sys:3 | v2.protocol.SFSProtocolCodec | |
(short) a: 7
(byte) c: 0
(sfs_object) p:
(byte) t: 1
Thank you

Re: Message to be sent too big?

Posted: 08 Dec 2015, 10:38
by Lapo
Hi,
if a message sent by the client is too big it will cause a server side error, saying that the size exceeds the configured limit.

By default SFS2X allows packets <= 2MBytes which is already a very high limit. If you plan to send data larger than that I'd recommend thinking again :) SmartFoxServer is optimized for transporting small packets at fast rates.

Also keep in mind that 2MB includes compression which can squeeze the data by a factor of 3 to 30 times.

cheers

Re: Message to be sent too big?

Posted: 08 Dec 2015, 10:43
by alexcy32
OK understood, so Lapo in the message log I provided what does the
08 Dec 2015 | 00:44:04,257 | DEBUG | SocketReader | protocol.binary.BinaryIoHandler | | STATE: WAIT_DATA
08 Dec 2015 | 00:44:04,257 | DEBUG | SocketReader | protocol.binary.BinaryIoHandler | | NOT ENOUGH DATA, GO AHEAD
refer to? Is it something completely different? Does the above imply some kind of a different error?

Thank you

Re: Message to be sent too big?

Posted: 08 Dec 2015, 10:51
by Lapo
Those are debug messages showing how packet fragments are received and re-assembled together.

Re: Message to be sent too big?

Posted: 08 Dec 2015, 10:59
by alexcy32
Understood thank you.

Finally can you tell me exactly what the error message will be for a message exceeding the limit? So I can search for it in the HUGE log file I have? :)

Thank you

Re: Message to be sent too big?

Posted: 08 Dec 2015, 11:52
by Lapo
Try searching for "exceed" in the log files.