From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: Handling HTTP "Upgrade" requests Date: Wed, 04 Mar 2015 11:51:54 +0100 Message-ID: <87a8ztjar9.fsf@gnu.org> References: <87wq3aan0s.fsf@fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1425466327 7426 80.91.229.3 (4 Mar 2015 10:52:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2015 10:52:07 +0000 (UTC) Cc: guile-devel@gnu.org To: David Thompson Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Mar 04 11:52:07 2015 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YT6uM-000658-Os for guile-devel@m.gmane.org; Wed, 04 Mar 2015 11:52:06 +0100 Original-Received: from localhost ([::1]:43125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YT6uM-0000WR-59 for guile-devel@m.gmane.org; Wed, 04 Mar 2015 05:52:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YT6uJ-0000WB-Of for guile-devel@gnu.org; Wed, 04 Mar 2015 05:52:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YT6uE-0002uU-FV for guile-devel@gnu.org; Wed, 04 Mar 2015 05:52:03 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YT6uE-0002uQ-CA for guile-devel@gnu.org; Wed, 04 Mar 2015 05:51:58 -0500 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]:51483 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YT6uD-0005pt-Ri; Wed, 04 Mar 2015 05:51:58 -0500 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 =?utf-8?Q?Vent=C3=B4se?= an 223 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <87wq3aan0s.fsf@fsf.org> (David Thompson's message of "Sat, 21 Feb 2015 18:00:03 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17684 Archived-At: David Thompson skribis: > I've been tinkering with adding WebSockets[0] support to Guile's HTTP > arsenal. The first blocking issue I've come across is that an HTTP > server must be able to detect the "Upgrade" header[1] and change > protocols. In my case, once a client thread accepts a WebSocket > connection, it should speak the WebSocket protocol, not HTTP. Roughly, I would change =E2=80=98http-write=E2=80=99 in (web server http) t= o just remove the socket from the server=E2=80=99s poll set when the response is an upgra= de, no? Ludo=E2=80=99.