The workground solution for the timeout from background server and proxy

22 views
Skip to first unread message

bird sky

unread,
Sep 9, 2011, 7:12:33 AM9/9/11
to orbite...@googlegroups.com
Hey, recently i'm working on Orbited 0.8alpha and stomp server. As we know, Orbited 0.8 use csp-0.1alpha10 on proxy protocol. And there is something wrong with the release connection from proxy to stomp server. When i'm using the browser to view the stomp client page, and refresh many time ( lead to stomp.connect). The connection of stomp server will grow up reasonable. But after i close the browser, some of these connections will not release for a long long time.

I change one line of csp code.

https://github.com/skysbird/csp/blob/master/csp/twisted/session.py

line 137. Invoke resetKillTimer when the request come in. Now it works as a want.

I don't know whether there is some side-effects.

Niklas B

unread,
Sep 10, 2011, 8:23:49 PM9/10/11
to Orbited Discussion
I accidentally added this live and the result is that all connections
are killed every heartbeat, so use with caution :)

bird sky

unread,
Sep 11, 2011, 3:21:58 AM9/11/11
to orbite...@googlegroups.com
no data duraing 10 secs then the stomp server will drop the connection, 10 sec is the csp-0.1alpha10 default setting, and it seems ok to me

--
You received this message because you are subscribed to the
Orbited discussion group.
To post, send email to
   <orbite...@googlegroups.com>
To unsubscribe, send email to
   <orbited-user...@googlegroups.com>
For more options, visit
   <http://groups.google.com/group/orbited-users>

bird sky

unread,
Sep 11, 2011, 3:22:48 AM9/11/11
to orbite...@googlegroups.com
sorry ,not the stomp server, it's the csp server, it will notify the proxy to disconnect to the stomp server

Niklas B

unread,
Sep 11, 2011, 3:31:33 PM9/11/11
to Orbited Discussion
Ah, that explains it. Good for STOMP, bad for IRC.

bird sky

unread,
Sep 11, 2011, 11:08:23 PM9/11/11
to orbite...@googlegroups.com
i think you can adjust the csp server default 10sec to a high value(larger than your irc heart-beat interval) then every thing should be ok.

alain perisse

unread,
Nov 26, 2011, 1:23:16 PM11/26/11
to orbite...@googlegroups.com
Hello I am looking for a specialist of Orbited/Stomp/ActiveMQ, to tune the 3 softwares together in the settings for a chat, working already perfectly. Meeting in Barcelona or Paris or London or any city  in Europe.

Alain
Reply all
Reply to author
Forward
0 new messages