Skip to content

Commit

Permalink
Bug 1420777 - Coalesce connections less aggresively r=necko-reviewers…
Browse files Browse the repository at this point in the history
…,kershaw

Differential Revision: https://phabricator.services.mozilla.com/D204663

UltraBlame original commit: 83ed667f93bb974d4a366f3ef977266940e30df2
  • Loading branch information
marco-c committed Jun 6, 2024
1 parent 2b41b73 commit f619120
Show file tree
Hide file tree
Showing 6 changed files with 1,553 additions and 43 deletions.
93 changes: 93 additions & 0 deletions modules/libpref/init/StaticPrefList.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78469,6 +78469,99 @@ true
mirror
:
always
#
When
true
origin
A
and
origin
B
will
be
coalesced
if
they
have
an
overlap
#
in
IP
addresses
as
advertized
by
DNS
regardless
if
the
existing
connection
#
to
origin
A
is
not
to
an
IP
present
in
B
'
s
DNS
response
.
#
When
false
an
existing
connection
will
only
be
reused
if
the
#
connection
'
s
remote
IP
is
also
present
in
B
'
s
DNS
response
.
-
name
:
network
.
http
.
http2
.
aggressive_coalescing
type
:
RelaxedAtomicBool
value
:
false
mirror
:
always
-
name
:
Expand Down
42 changes: 27 additions & 15 deletions netwerk/protocol/http/ConnectionEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,12 @@ Clear
(
)
;
mAddresses
.
Clear
(
)
;
}
void
ConnectionEntry
Expand Down Expand Up @@ -729,6 +735,12 @@ Clear
(
)
;
mAddresses
.
Clear
(
)
;
}
void
ConnectionEntry
Expand Down Expand Up @@ -2357,6 +2369,12 @@ Clear
(
)
;
mAddresses
.
Clear
(
)
;
}
uint32_t
ConnectionEntry
Expand Down Expand Up @@ -5445,12 +5463,6 @@ return
false
;
}
nsTArray
<
NetAddr
>
addressSet
;
nsresult
rv
=
Expand All @@ -5459,7 +5471,7 @@ dnsRecord
>
GetAddresses
(
addressSet
mAddresses
)
;
if
Expand All @@ -5470,7 +5482,7 @@ rv
)
|
|
addressSet
mAddresses
.
IsEmpty
(
Expand All @@ -5490,7 +5502,7 @@ i
;
i
<
addressSet
mAddresses
.
Length
(
Expand All @@ -5504,7 +5516,7 @@ i
if
(
(
addressSet
mAddresses
[
i
]
Expand All @@ -5517,7 +5529,7 @@ family
AF_INET
&
&
addressSet
mAddresses
[
i
]
Expand All @@ -5532,7 +5544,7 @@ ip
|
|
(
addressSet
mAddresses
[
i
]
Expand All @@ -5545,7 +5557,7 @@ family
AF_INET6
&
&
addressSet
mAddresses
[
i
]
Expand All @@ -5563,7 +5575,7 @@ u64
0
&
&
addressSet
mAddresses
[
i
]
Expand Down Expand Up @@ -5638,7 +5650,7 @@ kIPv6CStrBufSize
26
)
;
addressSet
mAddresses
[
i
]
Expand Down
6 changes: 6 additions & 0 deletions netwerk/protocol/http/ConnectionEntry.h
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,12 @@ nsCString
>
mCoalescingKeys
;
nsTArray
<
NetAddr
>
mAddresses
;
bool
mUsingSpdy
:
Expand Down
Loading

0 comments on commit f619120

Please sign in to comment.