@@ -2194,10 +2194,11 @@ unset or <a for=request>keepalive</a> is false, <a lt=terminated for=fetch>termi
2194
2194
<h3 id=connections>Connections</h3>
2195
2195
2196
2196
<p> A user agent has an associated <dfn export id=concept-connection-pool>connection pool</dfn> . A
2197
- <a>connection pool</a> consists of zero or more
2197
+ <a>connection pool</a> is an <a for=/>ordered set</a> of zero or more
2198
2198
<dfn lt=connection export id=concept-connection>connections</dfn> . Each <a>connection</a> is
2199
- identified by a <b> key</b> (a <a>network partition key</a> ), an <b> origin</b> (an
2200
- <a for=/>origin</a> ), and <b> credentials</b> (a boolean).
2199
+ identified by an associated <dfn for=connection>key</dfn> (a <a>network partition key</a> ),
2200
+ <dfn for=connection>origin</dfn> (an <a for=/>origin</a> ), and <dfn for=connection>credentials</dfn>
2201
+ (a boolean).
2201
2202
2202
2203
<p> Each <a>connection</a> has an associated
2203
2204
<dfn for=connection id=concept-connection-timing-info>timing info</dfn> (a
@@ -2259,11 +2260,12 @@ steps:
2259
2260
2260
2261
<hr>
2261
2262
2262
- <p> To <dfn export id=concept-connection-obtain>obtain a connection</dfn> , given a <var> key</var> ,
2263
- <var> origin</var> , <var> credentials</var> , an optional boolean <var> forceNew</var> (default false),
2264
- an optional boolean <dfn export for="obtain a connection"><var>http3Only</var></dfn> (default
2265
- false), and an optional boolean <dfn export for="obtain a connection"><var>dedicated</var></dfn>
2266
- (default false), run these steps:
2263
+ <p> To <dfn export id=concept-connection-obtain>obtain a connection</dfn> , given a
2264
+ <a>network partition key</a> <var> key</var> , <a for=/>origin</a> , <var> origin</var> , boolean
2265
+ <var> credentials</var> , an optional boolean <var> forceNew</var> (default false), an optional boolean
2266
+ <dfn export for="obtain a connection"><var>http3Only</var></dfn> (default false), and an optional
2267
+ boolean <dfn export for="obtain a connection"><var>dedicated</var></dfn> (default false), run these
2268
+ steps:
2267
2269
<!-- http3Only and dedicated have been added for WebTransport -->
2268
2270
2269
2271
<ol>
@@ -2272,8 +2274,9 @@ false), and an optional boolean <dfn export for="obtain a connection"><var>dedic
2272
2274
2273
2275
<ol>
2274
2276
<li><p> Let <var> connections</var> be a set of <a>connections</a> in the user agent's
2275
- <a>connection pool</a> each of whose <b> key</b> is <var> key</var> , <b> origin</b> is
2276
- <var> origin</var> , and <b> credentials</b> is <var> credentials</var> .
2277
+ <a>connection pool</a> whose <a for=connection>key</a> is <var> key</var> ,
2278
+ <a for=connection>origin</a> is <var> origin</var> , and <a for=connection>credentials</a> is
2279
+ <var> credentials</var> .
2277
2280
2278
2281
<li><p> If <var> connections</var> is not empty and <var> http3Only</var> is false, then return
2279
2282
one of <var> connections</var> .
@@ -2289,7 +2292,9 @@ false), and an optional boolean <dfn export for="obtain a connection"><var>dedic
2289
2292
2290
2293
<ol>
2291
2294
<li>
2292
- <p> Set <var> connection</var> to a new <a for=/>connection</a> .
2295
+ <p> Set <var> connection</var> to a new <a for=/>connection</a> whose <a for=connection>key</a> is
2296
+ <var> key</var> , <a for=connection>origin</a> is <var> origin</var> , and
2297
+ <a for=connection>credentials</a> is <var> credentials</var> .
2293
2298
<a for=/>Record connection timing info</a> given <var> connection</var> and use
2294
2299
<var> connection</var> to establish an HTTP connection to <var> origin</var> .
2295
2300
[[!HTTP]] [[!HTTP-SEMANTICS]] [[!HTTP-COND]] [[!HTTP-CACHING]] [[!HTTP-AUTH]] [[!TLS]]
@@ -2315,9 +2320,8 @@ false), and an optional boolean <dfn export for="obtain a connection"><var>dedic
2315
2320
<li><p> Return failure.
2316
2321
</ol>
2317
2322
2318
- <li><p> If <var> dedicated</var> is false, then add <var> connection</var> to the user agent's
2319
- <a>connection pool</a> with <b> key</b> being <var> key</var> , <b> origin</b> being <var> origin</var> ,
2320
- and <b> credentials</b> being <var> credentials</var> .
2323
+ <li><p> If <var> dedicated</var> is false, then <a for=set>append</a> <var> connection</var> to the
2324
+ user agent's <a>connection pool</a> .
2321
2325
2322
2326
<li><p> Return <var> connection</var> .
2323
2327
</ol>
0 commit comments