Disconnected clients

69 views
Skip to first unread message

Yuriy

unread,
Aug 14, 2011, 12:18:32 AM8/14/11
to Goliath.io
Hi,
I'm trying to use Goliath as a streaming server. How can I detect
disconnected clients to stop streaming to them?
Using on_close works if clients are connected directly to Goliath but
it seems not working if I run Goliath on Heroku.

Thanks,
Yuriy.

Ilya Grigorik

unread,
Aug 14, 2011, 2:07:50 PM8/14/11
to golia...@googlegroups.com
Umm, that should work. If it doesn't, I'd consider that to be a pretty serious bug for Heroku.. If the upstream client closes the connection, that should be propagated back to your server.

Have you tried contacting the Heroku team?

ig

Yuriy

unread,
Aug 15, 2011, 3:50:30 PM8/15/11
to Goliath.io
This is a reply I just got from Heroku:

"Unfortunately, our load balancers automatically keep a pool of TCP
connections open to their backends (in this case, the Heroku routing
layer). When a client connection closes, the load balancer doesn't
close the connection to its backend, and therefore, neither our
routing layer nor the web process running on the dyno are aware of
this event.

We're not pleased with this solution but unfortunately we've yet to
come up with a work-around."

Sound like I'm out of luck. Any alternatives?

Thanks,
Yuriy.

Ilya Grigorik

unread,
Aug 15, 2011, 5:42:16 PM8/15/11
to golia...@googlegroups.com
Umm, well that's a pretty nice fail. That means any sort of streaming use case on Heroku is broken. Can they propagate any sort of notification?

ig

Matt Aimonetti

unread,
Aug 15, 2011, 5:54:39 PM8/15/11
to golia...@googlegroups.com, golia...@googlegroups.com
I forwarded this thread to Ryan Daigle since that was the whole point they changed their infrastructure and got rid of varnish. Yuriy did you try to run your code on Cedar by any chance?

- Matt

Yuriy

unread,
Aug 15, 2011, 7:12:00 PM8/15/11
to Goliath.io
Yes, I run it on Cedar

Yuriy.

On Aug 15, 2:54 pm, Matt Aimonetti <mattaimone...@gmail.com> wrote:
> I forwarded this thread to Ryan Daigle since that was the whole point they changed their infrastructure and got rid of varnish. Yuriy did you try to run your code on Cedar by any chance?
>
> - Matt
>

Oded Argon

unread,
Dec 6, 2011, 9:05:40 AM12/6/11
to golia...@googlegroups.com
Hi,

I just stumbled upon the same problem I think.
Do any of you have any new information about this issue?

Oded.

Ernest Surudo

unread,
Jun 26, 2013, 5:22:26 PM6/26/13
to golia...@googlegroups.com
Ditto, two years later. I haven't tried it yet, but I guess I will find out soon...
Reply all
Reply to author
Forward
0 new messages