From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.devel Subject: Support Websocket status code Date: Fri, 26 Jul 2019 14:06:48 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a6bb51058e8f599f" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="15566"; mail-complaints-to="usenet@blaine.gmane.org" To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Jul 26 08:07:16 2019 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqtNo-0003pE-6g for guile-devel@m.gmane.org; Fri, 26 Jul 2019 08:07:12 +0200 Original-Received: from localhost ([::1]:36422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqtNh-0005o5-Ej for guile-devel@m.gmane.org; Fri, 26 Jul 2019 02:07:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46166) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqtNf-0005nS-7g for guile-devel@gnu.org; Fri, 26 Jul 2019 02:07:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqtNe-0004Dm-67 for guile-devel@gnu.org; Fri, 26 Jul 2019 02:07:03 -0400 Original-Received: from mail-yb1-xb2d.google.com ([2607:f8b0:4864:20::b2d]:38648) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hqtNe-000450-1S for guile-devel@gnu.org; Fri, 26 Jul 2019 02:07:02 -0400 Original-Received: by mail-yb1-xb2d.google.com with SMTP id j199so19273426ybg.5 for ; Thu, 25 Jul 2019 23:07:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=xsMvCejFAYUtbnKcXAPOInj7UrZY9LGo6q/ikQOXJIM=; b=ilWcydIjlvbPHZUfiZb5KYBWOxIWSQIaKKlkUqQAYukRy9q6XwtUz4fnM6cnOHWMSa DJ6+lWx5zltVbi5JBQYqUQyHrQwPachFah/xWfgnt4rbzCBMFrVq9RWahOvMIAncx5JX s2G0IwIZn2tbjI1oAVQhIu5Q4im50TUmGbelku7bNy3K7QJkAAsYWyakCWSLPRNyvE5Q AjrKEkhQ5La2gaiB/sqiN0kx3GllEW00Yfnv/iFxiwq4qTnhfLMSrA1Mw6MQEwhByopw 0HNRgug1SpPiJaFHzqC3Q0A4Xn1V4BHm7oea2tKetZ+bfrDb4bOkKDLF4pElQ1j36zX4 oGgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xsMvCejFAYUtbnKcXAPOInj7UrZY9LGo6q/ikQOXJIM=; b=s29Wls4tcIV92+K3/Iu/xoSyztHjouyxJqBMwfJMk9UujdgfB8QuAd/SyziLaWLul7 TX/cSysJf+AMdFLnNd/yfMaRgtHn5DtSpePyNlJq8XgNo5faskkVA+toMtxIDP8coq5i 6MkHjfL/7ypEjFAiL3tgeaEE0YrVtJUDUP/N/WbNw+gq2wM3DuwENEN2e0lFzyWYcTvi IJUrSZCD+nv/bjCrHvJbC1T8BXIZDvYVD428YjpIW3rVrfhYWPPyTAKmFyoShJdFrq7j NxeuvC9m74LL0e/T+wHdYN4cQcbWMYgUq8vOt8DaoJYK/zOBcvEy04dxolm+h4HufX0E Q8yA== X-Gm-Message-State: APjAAAV/0bOXeERe0T7oGdrrZTi8Vco2Zq/jEbnga1Lv9IaaioKz+LOK rguX+md3WVuIZq2miyg/b6husjXYjeFld+gHx67jddZuDo2hzA== X-Google-Smtp-Source: APXvYqyhTDfD4tagEC3Qc4oxv4gWWe+UcwGa9XTkzHABUwfUXuGj3gHohtkvLZHOU/xmKDX25ZK7JTZeFcCuPfdbWl0= X-Received: by 2002:a25:9c81:: with SMTP id y1mr57839464ybo.84.1564121219118; Thu, 25 Jul 2019 23:06:59 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::b2d X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:20023 Archived-At: --000000000000a6bb51058e8f599f Content-Type: text/plain; charset="UTF-8" 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. --000000000000a6bb51058e8f599f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi folks!
The current response builder will reject= status code less than 600:
-------------------------------code--= -----------------------
=C2=A0((not (and (non-negative-integer? c= ode) (< code 600)))
=C2=A0 (bad-response "Bad code: ~a" cod= e))
---------------------------------------------------------= ------

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.

--000000000000a6bb51058e8f599f--