[sip-comm-dev] Message size limits (ICQ & Yahoo!)


#1

Hello Everyone!

I've prepared a simple report about the maximum message sizes that can be delivered in various cases over ICQ and Yahoo! Messenger protocols.

Here it is:

1.) Sip Communicator --> Sip Communicator
    1.1.) ICQ protocol: 2546 characters is the maximum to send. Newline is considered as 1 character.
    1.2.) Yahoo! Messenger protocol: 1784 characters is the maximum to send. Newline is considered as 1 character.

2.) Sip Communicator --> Original ICQ client: 2546 characters is the maximum to send to the genuine ICQ client. Newline is considered as 1 character.

3.) Original ICQ client --> Sip Communicator: 2047 characters is the maximum to send. ICQ genuine client pops up a modal dialog upon send, complaining if this number is exceeded. Newline is considered as 2 characters.

4.) Sip Communicator --> Yahoo! Messenger client: 1784 characters is the maximum to send to the original Yahoo! Messenger client. Newline is considered as 1 character.

5.) Yahoo! Messenger client --> Sip Communicator: 1784 characters is the maximum to send. The original Yahoo! Messenger client blocks typing after reaching this number, i.e. the user hits the keyboard, but nothing appears :wink: . Newline is considered as 1 character.

Notes:

···

---------------
a) The original ICQ and Yahoo! Messenger clients were used on Windows;
b) I couldn't see any errors or exceptions thrown by SC when exceeding the abovementioned message sizes over any of the tested protocols (ICQ and Y!)

If you find this information useful, I could test a little further (when I have time) to check how it is in more cases, like Jabber and more operating systems.

HTH

Regards,
--Pavel Tankov

____________________________________________________________________________________
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL


#2

Hey Pavel,

Wow! Now this is some great QA work!

You know, right now, every time I write or paste a long message and send it to someone, I am never actually sure it gets there, so I alway have to ask "Did you get this?"

Now, I am wondering how we should best handle that. The first thing that came to my mind was an extra getMaxMsgSize() method in the instant messaging operation set that the UI could query before sending a message and alert the user accordingly.

However I then started wondering, what is actually the point in bothering the user with protocol details. A protocol provider could simply split the message if it needs to.

I've hacked up a quick patch for ICQ that does this. Right now I don't try to split the message on a space or new line so we'd have to polish that later, but I guess it's still better than simply sending a message that won't be received.

Oh, and btw, I've limited icq messages to 2047, ... just in case.

I'll commit it after I've tested it a bit since this split thing could turn out to be a tricky business.

I did the same for Yahoo! but the stack seems not to like it when I send multiple messages one after the other and reorders them on send. (or maybe it is the server?). Need to do some more testing there too.

If you find this information useful, I could test a little further (when I have time) to check how it is in more cases, like Jabber and more operating systems.

Hey, that would be great!

Thanks!
Emil

Pavel Tankov wrote:

···

Hello Everyone!

I've prepared a simple report about the maximum message sizes that can be delivered in various cases over ICQ and Yahoo! Messenger protocols.

Here it is:

1.) Sip Communicator --> Sip Communicator
    1.1.) ICQ protocol: 2546 characters is the maximum to send. Newline is considered as 1 character.
    1.2.) Yahoo! Messenger protocol: 1784 characters is the maximum to send. Newline is considered as 1 character.

2.) Sip Communicator --> Original ICQ client: 2546 characters is the maximum to send to the genuine ICQ client. Newline is considered as 1 character.

3.) Original ICQ client --> Sip Communicator: 2047 characters is the maximum to send. ICQ genuine client pops up a modal dialog upon send, complaining if this number is exceeded. Newline is considered as 2 characters.

4.) Sip Communicator --> Yahoo! Messenger client: 1784 characters is the maximum to send to the original Yahoo! Messenger client. Newline is considered as 1 character.

5.) Yahoo! Messenger client --> Sip Communicator: 1784 characters is the maximum to send. The original Yahoo! Messenger client blocks typing after reaching this number, i.e. the user hits the keyboard, but nothing appears :wink: . Newline is considered as 1 character.

Notes:
---------------
a) The original ICQ and Yahoo! Messenger clients were used on Windows;
b) I couldn't see any errors or exceptions thrown by SC when exceeding the abovementioned message sizes over any of the tested protocols (ICQ and Y!)

If you find this information useful, I could test a little further (when I have time) to check how it is in more cases, like Jabber and more operating systems.

HTH

Regards,
--Pavel Tankov

------------------------------------------------------------------------
Sucker-punch spam < http://us.rd.yahoo.com/evt=49981/*http://advision.webevents.yahoo.com/mailbeta/features_spam.html> with award-winning protection.
Try the free Yahoo! Mail Beta. < http://us.rd.yahoo.com/evt=49981/*http://advision.webevents.yahoo.com/mailbeta/features_spam.html>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net