From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Catonano Newsgroups: gmane.lisp.guile.user Subject: fibers on a unix socket Date: Thu, 31 Jan 2019 17:43:42 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="93824"; mail-complaints-to="usenet@blaine.gmane.org" To: Guile User Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Jan 31 17:44:39 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gpFS9-000OJ3-Ag for guile-user@m.gmane.org; Thu, 31 Jan 2019 17:44:37 +0100 Original-Received: from localhost ([127.0.0.1]:57209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpFS8-00015s-5t for guile-user@m.gmane.org; Thu, 31 Jan 2019 11:44:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpFRb-00014I-PY for guile-user@gnu.org; Thu, 31 Jan 2019 11:44:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpFRa-0001nF-0y for guile-user@gnu.org; Thu, 31 Jan 2019 11:44:03 -0500 Original-Received: from mail-yb1-xb42.google.com ([2607:f8b0:4864:20::b42]:42382) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gpFRZ-0001mO-SP for guile-user@gnu.org; Thu, 31 Jan 2019 11:44:01 -0500 Original-Received: by mail-yb1-xb42.google.com with SMTP id l20so1550935ybl.9 for ; Thu, 31 Jan 2019 08:43:59 -0800 (PST) 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=D/pmQ4O5WpljuBn3Sk1RAejNKH0ymqdBp+MxD+zmm4c=; b=PZwEL+PeGsQw4fnrJE8kRnzV7qFp9ruE5BUega+WumNjaH63Wne8pCSanVSiRl6Zca rcRhWqgyhpQv8kDBpEJ1W9pLVgkvas7rCDJlShqe5D0Lk+ND7B6ydTnAsLE5g65k6dgT OXocwMhZ6Q8I6xVjL6yItkkWJQhMb1AeskqzJSZQieleteQVzEoyPpoHtrCzGlP833a8 x39afBTAp7JHQmiSAKdcbXk1oouTsEf1J38MzVSyymXprkamTMZYzWE8e0p6a+TVR7zA yoCZPLonA0dhdvNaA3XnFKNLQDzINohVJb/+QuizhnXQhXmUexjwnI7QTEXJRlyrAcs5 y3Sg== 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=D/pmQ4O5WpljuBn3Sk1RAejNKH0ymqdBp+MxD+zmm4c=; b=ijjMAmyrqz8ZlJAAFeSRN56rPr8wlYwsESbAIwOwkh5P9YKL73TJ3yYPR53oLua7NN 17uSp0djNOo0c1Bnj+mdX6S36elj7L1ywbXovKYIsKjHRNx3UN/wiDEXPTqUfmImWdjT 9o4xu+1irQVUEpSNXRA4hO8JOx0vRCaBVeokQBqM6/tknBox8Hq9+tC+qDaP72b8GIJk 7rT8QnheoFrn99prvDtD6hsJ+c34t9Fb2FBpIzRgRwBqKAerj1rdXfsYYe3UukhCi6tm iNTF4/DRCsviHHz+2YUHxhkwzD12VCwRy9Ugnju0wTbxquTIFt3IdZ4MGTc2nDxo5qAO PYLg== X-Gm-Message-State: AHQUAuac71FUK4EM3WDrEPrf0Gec6t5MD0GAzl5y49u8xittqz64X32s htwqmZ3EBvyqbpn9Yw0z7lUDK2V3R7M6iCf1tPU+SQM= X-Google-Smtp-Source: AHgI3IZMxV8qfsud4HM4q57T4fxB9P7aNA7v2VBtqyaw5JqJmfUHWvFquJcTrbo8BnCyj+UYt2jBAJaFFj7fRrjYI/E= X-Received: by 2002:a25:6d05:: with SMTP id i5mr14407681ybc.489.1548953038440; Thu, 31 Jan 2019 08:43:58 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::b42 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15272 Archived-At: Hello in Fibers there's an example of a client connecting to a server I'd like to do the same thing BUT in my case the server provides a unix socket. It's a unix socket provided by Postgresql. On Ubuntu it's here /var/run/postgresql/.s.PGSQL.5432 I'm wondering about these 3 lines the fibers client uses ;; Disable Nagle's algorithm. We buffer ourselves. (setsockopt port IPPROTO_TCP TCP_NODELAY 1) (fcntl port F_SETFL (logior O_NONBLOCK (fcntl port F_GETFL))) (setvbuf port 'block 1024) Can a unix socket be non blocking ? Does it make any sense if I set the block size to 1024 ? Thanks