unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Nala Ginrut <nalaginrut@gmail.com>
To: guile-devel <guile-devel@gnu.org>
Subject: Support Websocket status code
Date: Fri, 26 Jul 2019 14:06:48 +0800	[thread overview]
Message-ID: <CAPjoZoe3XVoVTwzpg5qviBra50k4Wq4_05-dhA2fNhBRcf3wAg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 571 bytes --]

Hi folks!
The current response builder will reject status code less than 600:
-------------------------------code-------------------------
 ((not (and (non-negative-integer? code) (< code 600)))
  (bad-response "Bad code: ~a" code))
---------------------------------------------------------------

However, Websocket specific status code is larger than 1000.
This breaks Artanis Websocket handler to return 500, so that the client has
no way to detect the actual problem.

Is there any plan to support it?
Or maybe someone is just waiting for a patch? ;-)

Best regards.

[-- Attachment #2: Type: text/html, Size: 766 bytes --]

             reply	other threads:[~2019-07-26  6:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-26  6:06 Nala Ginrut [this message]
2019-07-29  6:57 ` Support Websocket status code Nala Ginrut
2019-08-07  6:52 ` Mark H Weaver
2019-08-07 11:39   ` Nala Ginrut

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://www.gnu.org/software/guile/

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

  git send-email \
    --in-reply-to=CAPjoZoe3XVoVTwzpg5qviBra50k4Wq4_05-dhA2fNhBRcf3wAg@mail.gmail.com \
    --to=nalaginrut@gmail.com \
    --cc=guile-devel@gnu.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.
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).