Channel limit

57 views
Skip to first unread message

Timofey Koolin

unread,
Nov 13, 2011, 3:27:45 PM11/13/11
to Google Appengine
Do Channel have any limit for send data?

I use channel to push email to webclient. 

If I push 100 emails simultaneously - client stop receive any messages. I send every message as one channel message.

Than I try send about 50 last emails than push email when I receive it. After some time channel disconnect and stop receive messages.

Some days ago i push only headers: from, to, subject and ID, without text. And channel work perfectly many hours without disconnect.

--
Blog: www.rekby.ru

Amy Unruh

unread,
Nov 13, 2011, 5:41:08 PM11/13/11
to google-a...@googlegroups.com
Timofey,

Check your 'Quota Details' page in the admin console to see whether you have hit any of your Channel quotas.
Also, note that channel tokens expire after about two hours, at which time the client can request a new token.  This page: http://code.google.com/appengine/docs/python/channel/overview.html describes how you can track disconnection events.

 -Amy

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Max

unread,
Nov 13, 2011, 9:39:06 PM11/13/11
to google-a...@googlegroups.com
hi Rekby, 

I am pretty sure your 100 emails just exceed channel API 32K max message size. 

Check message size before you send

Max

Timofey Koolin

unread,
Nov 13, 2011, 11:04:16 PM11/13/11
to google-a...@googlegroups.com
Amy Unruh, i far from any quota deny - all quotas are ok.
Yes, I know about handle channel disconnect, but I write application for internal-use with good internet-connection and i don't want handle connect/disconnect and make internal buffer for messages (when channel disconnected) if it possible.

I'm send every email as different message.

Yes, I forget about one message size limit - thanks, I try check it.

2011/11/14 Max <theb...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/I_rB81Ns8lsJ.

To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



--
Blog: www.rekby.ru

Timofey Koolin

unread,
Nov 14, 2011, 2:38:40 AM11/14/11
to google-a...@googlegroups.com
My code look like:
updates = get_updates(...)
channel = get_channel(...)
for update in updates:
    id = memcache.incr('mess id', initial_value=1)
    update['mess_id'] = id
    js = json.dumps(update)
    channel.send_message(channel, js)

I have about 50 updates.

After receive about 20-30 messages client side code receive one message infinite times and don't receive new messages. For example:
receive 1
receive 2
receive ...
receive 21 pause 20-60 sec
receive 21 pause 20-60 sec
receive 21 pause 20-60 sec
receive 21 pause 20-60 sec
receive 21 pause 20-60 sec
...


2011/11/14 Timofey Koolin <tim...@koolin.ru>



--
Blog: www.rekby.ru

Timofey Koolin

unread,
Nov 14, 2011, 2:51:16 AM11/14/11
to google-a...@googlegroups.com
I don't have any exceptions on server-side and client side.
Size of every js about 500 bytes.

2011/11/14 Timofey Koolin <tim...@koolin.ru>



--
Blog: www.rekby.ru

Timofey Koolin

unread,
Nov 14, 2011, 4:58:45 AM11/14/11
to google-a...@googlegroups.com
It was my mistake while I parse messages.

I try send 1000 messages - it delivery ok.

Do google save sended messages in any buffer when channel disconnect. What  size of this buffer?

2011/11/14 Timofey Koolin <tim...@koolin.ru>



--
Blog: www.rekby.ru
Reply all
Reply to author
Forward
0 new messages