Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson-rMlxZR9MS24@public.gmane.org>
To: Rainbows! list <rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org>
Subject: Re: Upgrading websocket application with Rainbows
Date: Tue, 26 Mar 2013 00:13:34 +0000	[thread overview]
Message-ID: <20130326001334.GA9092@dcvr.yhbt.net> (raw)
In-Reply-To: <CAPxkqHg7RtPMRXDd-KCoK8b63opM3DdBFVBP9QAq2HOJBvD5_g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Cary Cherng <ccherng-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Is there a best practice for how to restart a Rails app that uses websockets?
> 
> As far as I can tell, the Rainbows documentation doesn't say anything
> about how to deal with existing websocket connections when using
> signal handling to replace old processes with new ones.

Unfortunately, there isn't one that I know of.

I haven't looked at WebSockets in ages, but I think client-side code
needs to be taught to handle disconnects/shutdowns gracefully and retry
as needed.
_______________________________________________
Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
http://rubyforge.org/mailman/listinfo/rainbows-talk
Do not quote signatures (like this one) or top post when replying


      parent reply	other threads:[~2013-03-26  0:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-25 23:59 Upgrading websocket application with Rainbows Cary Cherng
     [not found] ` <CAPxkqHg7RtPMRXDd-KCoK8b63opM3DdBFVBP9QAq2HOJBvD5_g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-03-26  0:13   ` Eric Wong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/rainbows/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130326001334.GA9092@dcvr.yhbt.net \
    --to=normalperson-rmlxzr9ms24@public.gmane.org \
    --cc=rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/rainbows.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).