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


#1

Hello Emil,

Thanx for that. Just one minor question.

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

I just tried to send a large chunk of data to a friend over ICQ and he said that he hadn't received anything. However, it appeared on the top half of my chat window, i.e. as if I had sent it. What could be the reason for that?

Thanks,
--Pavel Tankov

···

----- Original Message ----

From: Emil Ivov <emcho@emcho.com>

To: dev@sip-communicator.dev.java.net
Sent: Tuesday, March 20, 2007 4:57:55 PM
Subject: Re: [sip-comm-dev] Message size limits (ICQ & Yahoo!)

Hello Pavel,

Wanted to let you know that I've created an issue for this one,

https://sip-communicator.dev.java.net/issues/show_bug.cgi?id=329

so I guess we'll get back to this discussion in a while.

Emil

Pavel Tankov wrote:

Hello Emil,

At first I also thought we should restrict sending of messages that exceed the protocol limits. Then your proposal for auto splitting sounded better. But still, I want to go further than that.

IM software is used for many purposes - from simple "How are you doing"- style chats to developers exchanging code snippets (why not). So maybe sometimes the auto splitting will not be desired no matter how intelligent we make it. Maybe then we should have some option in the UI that enables/disables it?

But let's go deeper into this. Currently we send the message with <Enter>. Some IM clients have also <Ctrl> + <S>. I would propose we have <Ctrl> + <S> for normal sending and, say, <Ctrl> + <Shift> + <S> for "split-send". We could popup a message box saying "The message you're trying to send exceeds XXX symbols. If you want to split-send it, use <Ctrl> + <Shift> + <S> or check with the default options". And, of course, the inevitable "Don't show again" checkbox that would be selected by default. :wink:

Thanks,
--Pavel Tankov

----- Original Message ----
From: Emil Ivov <emcho@emcho.com>
To: dev@sip-communicator.dev.java.net
Sent: Saturday, March 10, 2007 8:28:00 PM
Subject: Re: [sip-comm-dev] Message size limits (ICQ & Yahoo!)

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

____________________________________________________________________________________
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265

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

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

____________________________________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

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