Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93DCF108D7 for ; Wed, 6 Nov 2013 14:49:53 +0000 (UTC) Received: (qmail 4567 invoked by uid 500); 6 Nov 2013 14:47:58 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 4530 invoked by uid 500); 6 Nov 2013 14:47:55 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 4520 invoked by uid 99); 6 Nov 2013 14:47:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 14:47:52 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.214.169] (HELO mail-ob0-f169.google.com) (209.85.214.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 14:47:46 +0000 Received: by mail-ob0-f169.google.com with SMTP id uz6so10283771obc.28 for ; Wed, 06 Nov 2013 06:47:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=ZwCszau5Uc30qrthAWxZ6P3wYopzdokYiTU8IZebZKo=; b=UQmVMdSzcOREJUHOMByJcWoG7IjWvAIKvEKaTR3ThoAehHPUhLRcPA9WhlO+6Bq80R F/UpK72Va5UWfJRPFvD2h3HE4sK3EG67owwC1Jv9SL8Z+b1JVJvRa+bzukIQ6UmTA6/W aF2iGdthT89FNgmv32kO1DIfkedpKzfbpsppnt+Hk0TnRZIolH8xokl/B8wlgUnMBUSH RhU9hShI/WAsKb/vte58BsaSoc+nO9df3yYckZh+zYD4LOAMZGGflCAj6HgeHjGVQkjM uHQ+EBWGgTLYOgLGVt4825bCrTSjKpoPjidTE+ZvutIGfsn5qyu1QlXCeGEFJvjXi64/ OAMw== X-Gm-Message-State: ALoCoQn2vSG3cIdQ63WfiZqirPdbT/Jj1SYmSBwobXH6THoDBTnPt9oftnZoC/5dzUq9jchP6TFe MIME-Version: 1.0 X-Received: by 10.182.121.137 with SMTP id lk9mr3000345obb.32.1383749244957; Wed, 06 Nov 2013 06:47:24 -0800 (PST) Received: by 10.182.193.97 with HTTP; Wed, 6 Nov 2013 06:47:24 -0800 (PST) X-Originating-IP: [67.7.87.53] In-Reply-To: References: Date: Wed, 6 Nov 2013 08:47:24 -0600 Message-ID: Subject: Re: Http 1.1 keep alive From: "matt j. sorenson" To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=089e0149ccae34977904ea833a3a X-Virus-Checked: Checked by ClamAV on apache.org --089e0149ccae34977904ea833a3a Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On Tue, Nov 5, 2013 at 6:22 PM, Jens Alfke wrote: > > On Nov 5, 2013, at 3:57 PM, Stanley Iriele wrote: > > > This snippet I found in the couchdb core api section of the documentati= on > > seems a bit misleading to me. It looks like its saying" keeping > connections > > is hard so tear them down=94.. > > I agree, that quote is very misleading! It seems to be confusing > =93connection=94 with =93request=94: HTTP requests are stateless, but the= network > transport will reuse a TCP connection across multiple requests. Someone > should rewrite it. > > The quote appears here: > http://docs.couchdb.org/en/latest/intro/api.html#revisions > It appears at a lot of other URLs, says Google, but it seems to originate > from the =93Complete Guide=94 book at http://guide.couchdb.org. > > =97Jens So, statelessness is defined more at the application level (meaning couchdb); and is fundamentally a pattern of RESTful interfaces - meaning each request and response contains anything & everything necessary to communicate application state... is that more/less correct? It's been quite a few years since I *skimmed* Fielding's paper ;) Where-as the http level stuff is more of a transport layer thing? Perhaps I'm mis-using the OSI layer references[1] here, but logically it helps me to think of the statelessness at a layer above, and not-really-caring-about-or-impacted-by, the connection/keep-alive in the protocol. [1] http://en.wikipedia.org/wiki/OSI_model --089e0149ccae34977904ea833a3a--