From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Christopher Allan Webber Newsgroups: gmane.lisp.guile.devel Subject: Adding (ice-9 suspendable-ports) support to https / custom ports Date: Tue, 04 Jul 2017 11:04:25 -0500 Message-ID: <8737actchi.fsf@dustycloud.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1499184284 30318 195.159.176.226 (4 Jul 2017 16:04:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2017 16:04:44 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 25.2.1 To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jul 04 18:04:38 2017 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSQJT-0007G1-4m for guile-devel@m.gmane.org; Tue, 04 Jul 2017 18:04:31 +0200 Original-Received: from localhost ([::1]:42177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSQJW-0007Te-Sd for guile-devel@m.gmane.org; Tue, 04 Jul 2017 12:04:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSQJS-0007Qs-5D for guile-devel@gnu.org; Tue, 04 Jul 2017 12:04:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSQJR-0001BI-DN for guile-devel@gnu.org; Tue, 04 Jul 2017 12:04:30 -0400 Original-Received: from dustycloud.org ([2600:3c02::f03c:91ff:feae:cb51]:34656) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dSQJR-00014h-7Y for guile-devel@gnu.org; Tue, 04 Jul 2017 12:04:29 -0400 Original-Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 56EEE265F0 for ; Tue, 4 Jul 2017 12:04:27 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c02::f03c:91ff:feae:cb51 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 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:19240 Archived-At: Hiya, For the project I'm working on, I'll need to have (ice-9 suspendable-ports) work with https. This is a bit more urgent than I realized. I'm willing to attempt the work, but I don't even know where to start. Could someone give me pointers as to where to begin spelunking? I'm guessing I have to both follow the lead of the suspendable-ports adjustments to normal ports and also enable fnctl support for custom ports? Specifically, I imagine that this needs to be supported: (let ((flags (fcntl socket F_GETFL))) (fcntl socket F_SETFL (logior O_NONBLOCK flags))) Either that or we need some generalized procedure that can either do this to a port which does set fnctl or... I don't know what it would do for something which doesn't need to run that operation. Advice appreciated! - Chris