From 8be30174d5d3cdfd9711008b88da3961e0da51de Mon Sep 17 00:00:00 2001 From: Martin Thomson Date: Wed, 24 Jan 2024 10:36:55 +1100 Subject: [PATCH] Remove dependency on Data Recvd signals in cleanup This is a simplification, which will cause applications to see errors more often, but I think that it is a good one. Closes #581. --- index.bs | 3 --- 1 file changed, 3 deletions(-) diff --git a/index.bs b/index.bs index 1080f8d..b314622 100644 --- a/index.bs +++ b/index.bs @@ -1155,13 +1155,10 @@ series of steps |steps|, run these steps: Whenever a [=WebTransport session=] which is associated with a {{WebTransport}} |transport| is [=session/terminated=] with optionally |code| and |reasonBytes|, run these steps: -1. Let |cleanly| be a boolean representing whether |transport|.{{[[Session]]}}'s [=CONNECT stream=] - is in the "Data Recvd" state. [[!QUIC]] 1. [=Queue a network task=] with |transport| to run these steps: 1. If |transport|.{{[[State]]}} is `"closed"` or `"failed"`, abort these steps. 1. Let |error| be a newly [=DOMException/created=] {{WebTransportError}} whose {{WebTransportErrorOptions/source}} is `"session"`. - 1. If |cleanly| is false, then [=cleanup=] |transport| with |error|, and abort these steps. 1. Let |closeInfo| be a [=new=] {{WebTransportCloseInfo}}. 1. If |code| is given, set |closeInfo|'s {{WebTransportCloseInfo/closeCode}} to |code|. 1. If |reasonBytes| is given, set |closeInfo|'s {{WebTransportCloseInfo/reason}} to |reasonBytes|,