Re: Deadlocking in the transport

Jana Iyengar <jri@google.com> Wed, 10 January 2018 22:55 UTC

Return-Path: <jri@google.com>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9109A127876 for <quic@ietfa.amsl.com>; Wed, 10 Jan 2018 14:55:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.71
X-Spam-Level:
X-Spam-Status: No, score=-2.71 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MIhRvyF-VAlN for <quic@ietfa.amsl.com>; Wed, 10 Jan 2018 14:55:10 -0800 (PST)
Received: from mail-yw0-x229.google.com (mail-yw0-x229.google.com [IPv6:2607:f8b0:4002:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 895D41241FC for <quic@ietf.org>; Wed, 10 Jan 2018 14:55:10 -0800 (PST)
Received: by mail-yw0-x229.google.com with SMTP id z132so268099ywd.9 for <quic@ietf.org>; Wed, 10 Jan 2018 14:55:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XQi7u4DWiiXEteilSHdYGSPJuXCcFjXW7KTgw+2pmY0=; b=sBfH1r+8o9MH5/c+6yW6tOLb8ubij+urhoxq/eTwGO78Kv+Il/z2iAOm887Zr5W04h ZhgGC9q7TFKGnmpNCul+8DE+z6KWXCun7secEKy7ryh7+gzCRtU1tY0mHNwRK329+HCV zJg5/JVOJdIbDAEu0QYYpfJMF8VZraFSCYDLttLl6pgLVc9Vdc1uDxwIZA3hBrmfMpf5 2iBPc+uSfhSS8xBBRFEj1X0+Evi+us3qRU8/2XHy4QAtOCqnSO009XY+tlZ9OCJ6d98F AlrcfABYumMQWhff7cyGSe73A1J9C4gEBcfe79z28QJ/oOEs2CYyOgilGt7XT6utyKsh GtrQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XQi7u4DWiiXEteilSHdYGSPJuXCcFjXW7KTgw+2pmY0=; b=hAel0tX1wbL+DVCpoEDYTZBVWTGcp6j0kEfvA3ooC11/C0XrksWA51vFsp8VpFL+ST NC0BeP2eCvpuPG5WQ5OicitIX9vC6TU6NLZyD3ow6O1QMqj5Diifk9V7n2s3m4k70XrA GaVBBSQD6p2FKFXqFkhEnMzRabGrnezfuF7BjJGxzxfpdTsos5ilELbT+9b99OBIeAKq TnT9KGojCvsdj4sgmDnkaWo4PM78QqDJ9AFeUq51h2ixKujD1ROKaCFqiLs5R0UQ0Rse nNZh7DPXWuBt1sYQkmCMyIKM+jstderl4LklvQ/ujWM1Bw/2es9AAg1IcAgjq7GNKV2c S2zQ==
X-Gm-Message-State: AKGB3mKPHIw2ymDllCWKTrl9iBIsoUQL7Uw3LFiWSw4nE4B3qM/rDsEn WmQQBF/Bfmxr6o9TrwknxzglZxPmJr6a1SwjxJrcsQ==
X-Google-Smtp-Source: ACJfBouwZycLDfc/XaDZ1pna8tZqYBgDARXYuFnq6xSMKjrqpA5C/i3vhgTFp/ymOIOcjuqrjsTMmhzWyxQ6CrpWDFM=
X-Received: by 10.129.146.86 with SMTP id j83mr17635928ywg.256.1515624909255; Wed, 10 Jan 2018 14:55:09 -0800 (PST)
MIME-Version: 1.0
Received: by 10.37.42.147 with HTTP; Wed, 10 Jan 2018 14:55:08 -0800 (PST)
In-Reply-To: <CABkgnnWtmprf291pBgTOrfi6yU9tXSfKi5J5uQpm7Z4JHuiGWg@mail.gmail.com>
References: <CABkgnnUSMYRvYNUwzuJk4TQ28qb-sEHmgXhxpjKOBON43_rWCg@mail.gmail.com> <CAGD1bZYV7iHg_YarUMqUSnpbAB2q8dwEWO=dHE2wbw8Oea_zfA@mail.gmail.com> <CAD-iZUY-Y-MO_T74JmP6B9XVj=91eVovfcWnE=9s9kd0Ji+CnA@mail.gmail.com> <CAGD1bZa7ugOTT11qOKfCm4NFdi+t-pdrXnscWHgg0bO5tgUqmg@mail.gmail.com> <20180110194716.GA30573@ubuntu-dmitri> <CAGD1bZYiDOakLYNppMBr=99JreX3Xr2zkS7O2DRNfvr_o0NUbg@mail.gmail.com> <20180110200646.GB30573@ubuntu-dmitri> <CAGD1bZa-ZOw5J6oSWBYdk3uYHOpGvak+vwGp0XsZB44zbLvRrw@mail.gmail.com> <20180110202357.GC30573@ubuntu-dmitri> <CAGD1bZbPM3wnatLLN5938wGPo3e1qmxnGzobSTym6XX3W8FNJQ@mail.gmail.com> <CABkgnnU3CQkvd7m+G80sCOPJfzb_=HonbRDSQJC8wqD_uWoj0w@mail.gmail.com> <CAGD1bZbrtMEJE-OOXqG02yWmHy_2baEvaZu=rFCBTtcq94JrOg@mail.gmail.com> <CABkgnnWtmprf291pBgTOrfi6yU9tXSfKi5J5uQpm7Z4JHuiGWg@mail.gmail.com>
From: Jana Iyengar <jri@google.com>
Date: Wed, 10 Jan 2018 14:55:08 -0800
Message-ID: <CAGD1bZZVanst_1g-7hBcjmca9aEqfREAJQorpq_F6M5RFX72ag@mail.gmail.com>
Subject: Re: Deadlocking in the transport
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Charles 'Buck' Krasic <ckrasic@google.com>, QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c08fc8654ac59056273ec19"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/QY5BJPe8cyUI58qWTEI_KEdt4WQ>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Jan 2018 22:55:12 -0000

>
> Ahh, excellent, then I think at least we two are in agreement.  It
> seems like there is an emerging acceptance of the problem and proposed
> approach, I guess we might start considering how to address it.
>

I think so. I've heard some other approaches aired that folks may want to
discuss however.


> I think that this needs to be in the main spec.  Failing to document
> this sort of pitfall could be fatal.  Does anyone disagree?
>

I agree that we should document this, especially since it's expected to be
a common design pattern. Since we don't express dependencies among streams,
we have to ensure that an app that wishes to do so doesn't do the wrong
thing. I think we definitely should draw attention to this point, but I'm
not sure that we need to be very prescriptive here for what the app should
do, but I think we should use strong language for what a transport
implementation should do.

We should also mention that an app that chooses to not read out of a stream
buffer may cause negative interactions with any autotuning mechanisms
implemented to tune window update magnitude and frequency.