Граф коммитов

167 Коммитов

Автор SHA1 Сообщение Дата
Chris Peterson 9db7016a65 Bug 1630511 - Replace MOZ_MUST_USE with [[nodiscard]] in netwerk. r=necko-reviewers,dragana
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

Differential Revision: https://phabricator.services.mozilla.com/D71144
2020-04-18 06:37:32 +00:00
Sylvestre Ledru 0aa6f03cf3 Bug 1519636 - Reformat recent changes to the Google coding style r=jgilbert
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-04-05 13:34:58 +00:00
Dragana Damjanovic 2c00055f19 Bug 1582663 - Remove what is not needed from HttpConnectionUDP. r=mayhemer
Depends on D64041

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

--HG--
extra : moz-landing-system : lando
2020-02-28 11:00:07 +00:00
Dragana Damjanovic ebc7582570 Bug 1582663 - Remove functions from HttpConnectionBase that are TCP connection specific. r=mayhemer
Depends on D64039

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

--HG--
extra : moz-landing-system : lando
2020-02-28 10:53:41 +00:00
Dragana Damjanovic db015cfbd0 Bug 1582663 - Remove Http3Session from nsHttpConnection. r=mayhemer
Depends on D64037

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

--HG--
extra : moz-landing-system : lando
2020-02-28 10:34:57 +00:00
Dragana Damjanovic c0693368e2 Bug 1582663 - Split nsHttpConnection into HttpConnectionBase and nsHttpConnection. Make nsHttpConnectionMgr use only HttpConnectionBase. r=mayhemer
Depends on D64033

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

--HG--
extra : moz-landing-system : lando
2020-02-28 10:09:02 +00:00
Eric Rahm 2c08316c5d Bug 1610070 - Part 3: Convert the rest of netwerk/ to use UniquePtr. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D60341

--HG--
extra : moz-landing-system : lando
2020-02-11 16:20:08 +00:00
Dragana Damjanovic a60ae4976f Bug 1581637 - Part 9 - Make Http3 connection and include http3 in nsHttpConnectionMgr. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D46653

--HG--
extra : moz-landing-system : lando
2019-11-01 14:55:55 +00:00
Andreea Pavel 8846cf3d21 Backed out 13 changesets (bug 1581637) for xpchell failures at test_anonymous-coalescing.js on a CLOSED TREE
Backed out changeset 3a458217248d (bug 1581637)
Backed out changeset a5df33ec7393 (bug 1581637)
Backed out changeset c5d8950b4a4b (bug 1581637)
Backed out changeset 97ff4a06c2da (bug 1581637)
Backed out changeset 496ec0c5a60f (bug 1581637)
Backed out changeset 63b7f1ff1714 (bug 1581637)
Backed out changeset 6b80553abc74 (bug 1581637)
Backed out changeset 6b6b75fbec7f (bug 1581637)
Backed out changeset f09b9a4ba633 (bug 1581637)
Backed out changeset 21b721e37d39 (bug 1581637)
Backed out changeset 58ca75a25253 (bug 1581637)
Backed out changeset c28174eaccbe (bug 1581637)
Backed out changeset e6ff3db0a421 (bug 1581637)
2019-10-31 02:45:42 +02:00
Dragana Damjanovic 7fbe62e2bf Bug 1581637 - Part 9 - Make Http3 connection and include http3 in nsHttpConnectionMgr. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D46653

--HG--
extra : moz-landing-system : lando
2019-10-30 20:55:19 +00:00
Sylvestre Ledru e226046cb8 Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
# ignore-this-changeset

Depends on D28954

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

--HG--
extra : moz-landing-system : lando
2019-05-01 08:47:10 +00:00
Dragana Damjanovic a27692b748 Bug 1543005 - Collect telemetry on traffic transferred through a captive portal. r=valentin
Adding telemetry for the amount of traffic transfer over the captive portal. Also moving some telemetry for trackers to the same place where our old telemetry is, so that they are all on the same place.

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

--HG--
extra : moz-landing-system : lando
2019-04-19 09:26:48 +00:00
Csoregi Natalia fc982ef00d Backed out changeset d969c3ed6999 (bug 1543005) for assertion failures on netwerk/protocol/http/nsHttpHandler.cpp. CLOSED TREE 2019-04-17 22:07:07 +03:00
Dragana Damjanovic 591ecb1b1e Bug 1543005 - Collect telemetry on traffic transferred through a captive portal. r=valentin
Adding telemetry for the amount of traffic transfer over the captive portal. Also moving some telemetry for trackers to the same place where our old telemetry is, so that they are all on the same place.

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

--HG--
extra : moz-landing-system : lando
2019-04-13 19:30:35 +00:00
Liang-Heng Chen 87aef68061 Bug 1533363 - Part 1: Add HttpTrafficAnalyzer service; r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D24517

--HG--
extra : moz-landing-system : lando
2019-04-04 21:38:28 +00:00
Brindusan Cristian 6760a04b6a Backed out 2 changesets (bug 1533363) for build bustages at HttpTrafficAnalyzer.cpp.
Backed out changeset 99636457aa95 (bug 1533363)
Backed out changeset c3488f465c29 (bug 1533363)
2019-04-04 21:13:58 +03:00
Liang-Heng Chen 187eba79a4 Bug 1533363 - Part 1: Add HttpTrafficAnalyzer service; r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D24517

--HG--
extra : moz-landing-system : lando
2019-04-04 17:29:36 +00:00
Tooru Fujisawa 7983faeb5d Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Nicholas Hurley 27190f4a59 Bug 1434137 - Implement websockets over http/2 - RFC 8441 r=michal,dragana
https://tools.ietf.org/html/rfc8441

This uses our existing http/2 CONNECT infrastructure (modified) to
enable the new extended CONNECT form defined by 8441, and pretend for
the websocket's sake that an http/2 stream is actually a socket. From
the websocket's point of view, this is relatively non-invasive - a few
things have changed (http response code, absence of some headers) versus
http/1.1 websockets, but for the most part, the websocket code doesn't
care.

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

--HG--
extra : moz-landing-system : lando
2018-11-06 19:29:57 +00:00
Kershaw Chang 070976655b Bug 1484947 - Close the transaction if PR_Read/PR_Write failed, r=nwgh
When PR_Read/PR_White returns -1, we have to use ErrorAccordingToNSPR to get the error code. We need to close the transaction if the real error happens.

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

--HG--
extra : moz-landing-system : lando
2018-10-31 09:32:40 +00:00
Nicholas Hurley 2423735102 Bug 1460310 - Separate HTTP and SPDY identifiers into separate namespaces. r=dragana
MozReview-Commit-ID: E55YpGK7PXI

--HG--
extra : rebase_source : 3146c7de66653262694235043a44be4ccf5ffc33
2018-06-01 11:32:05 -07:00
Honza Bambas 281502cac6 Bug 1363284 - HTTP/2 anonymous/onymous session (connection) coalescing, r=mayhemer
--HG--
extra : rebase_source : 66192a32668de8a9cd99722d1e0860cce2f84030
2018-02-15 09:10:00 +02:00
Patrick McManus 4ece6279ba Bug 1439105 - Ban H2 Client Certs Post Handshake r=bagder,keeler
MozReview-Commit-ID: Dfx5bB5NOBp

--HG--
extra : rebase_source : ec0984aec6625950b139c06a4ae3da69f49afdf3
2018-02-17 08:10:13 -05:00
Daniel Stenberg e5d3226694 bug 1434852 - introducing TRR (DOH); r=mcmanus,valentin
Provides an optional resolver mechanism for Firefox that allows running
together with or instead of the native resolver.

TRR offers resolving of host names using a dedicated DNS-over-HTTPS server
(HTTPS is required, HTTP/2 is preferable).

DNS-over-HTTPS (DOH) allows DNS resolves with enhanced privacy, secure
transfers and improved performance.

To keep the failure rate at a minimum, the TRR system manages a dynamic
persistent blacklist for host names that can't be resolved with DOH but works
with the native resolver. Blacklisted entries will not be retried over DOH for
a couple of days. "localhost" and names in the ".local" TLD will not be
resolved via DOH.

TRR is preffed OFF by default and you need to set a URI for an available DOH
server to be able to use it. Since the URI for DOH is set with a name itself,
it may have to use the native resolver for bootstrapping. (Optionally, the
user can set the IP address of the DOH server in a pref to avoid the required
initial native resolve.)

When TRR starts up, it will first verify that it works by checking a
"confirmation" domain name. This confirmation domain is a pref by default set
to "example.com". TRR will also by default await the captive-portal detection
to raise its green flag before getting activated.

All prefs for TRR are under the "network.trr" hierarchy.

The DNS-over-HTTPS spec: https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-03

MozReview-Commit-ID: GuuU6vjTjlm

--HG--
extra : rebase_source : 53fcca757334090ac05fec540ef29d109d5ceed3
2018-02-01 10:20:49 +01:00
Dragana Damjanovic dd.mozilla@gmail.com 401373dbe5 Bug 1430738 - Fix the channel timing info if a halfOpenSocket is opened with a non-null httpTransaction. r=mcmanus 2018-01-22 12:10:00 -05:00
Honza Bambas bc1c741e25 Bug 1405446 - Connections created for urgent-start requests are of limits for non-urgent-start ones, r=dragana 2018-01-09 07:58:00 -05:00
Dragana Damjanovic 66a1074054 Bug 1426366 - Detect http transaction stalls with TFO. r=hurley 2017-12-21 18:32:28 +01:00
Dragana Damjanovic ea3c619848 Bug 1384679 - Fix timing for TFO. r=mcmanus r=honza 2017-10-17 15:28:33 +02:00
Dragana Damjanovic b274c67092 Bug 1390881 - Improve the TFO telemetry. r=mcmanus 2017-08-20 09:45:26 +02:00
Patrick McManus 850582d8f3 Bug 772589 - Implement the secureConnectionStart property for the PerformanceTiming interface r=bkelly,dragana,francois,Honza
Implements PerformanceTiming, nsITimedChannel, and devtools 'tls setup'

Also captures telemetry on this as we do for all other attributes of timedChannel

Also propogates some null transaction timings onto first real
transaction of a connection

MozReview-Commit-ID: 47TQJYVHnKC

--HG--
extra : rebase_source : a7723962986de0c2ab00d479a22c3f5fd185c8b2
2017-07-10 15:01:35 -04:00
Dragana Damjanovic dd.mozilla@gmail.com 21aede7436 Bug 1381005 - Add some diagnostic assertions to figure out why mEnt is null. This is only temporary. r=mcmanus 2017-07-17 23:59:29 +02:00
Honza Bambas 5f3173e90f Bug 1365306 - Remove net::ThrottlingService, don't suspend/resume download channels on page load. r=hurley 2017-05-18 14:09:00 -04:00
Dragana Damjanovic 4d67546b87 Bug 1364371 - Introduce mHalfOpenFastOpenBackups and make TFO handling clearer. r=mcmanus 2017-05-24 14:03:40 +02:00
Dragana Damjanovic 0f080b064b Bug 1360515 - During TCP Fast Open let necko works as it is used to, but only limit amount of data we write to lower layers, i.e. nss, tcpFastOpenLayer, tcp socket. r=mcmanus 2017-05-04 12:15:33 +02:00
Dragana Damjanovic 2c802ffe1c Bug 1360570 - Make sure to write as much data as possible during FastOpen. r=mcmanus 2017-05-04 12:15:23 +02:00
Dragana Damjanovic 6fb8664ccb Bug 1352271 - Add telemetry about TCP Fast Open. r=mcmanus r=francois 2017-05-04 12:15:01 +02:00
Dragana Damjanovic 04e98c441a Bug 1188435 - Fix http2 restart on net-reset and fix activeConn count. r=mcmanus 2017-05-04 12:14:41 +02:00
Dragana Damjanovic 827d3bbab5 Bug 1188435 - Make TLS 0RTT work with TLS Fast Open. r=mcmanus 2017-05-04 12:14:13 +02:00
Dragana Damjanovic accc6e95b1 Bug 1188435 - Implement fast open necko part. r=mcmanus 2017-05-04 12:14:04 +02:00
Honza Bambas c195f6ee04 Bug 1348061 - When an HTTP channel is throttled, stop reading from the socket when using HTTP/1. r=mcmanus 2017-04-13 05:26:00 -04:00
Patrick McManus 06bd9a4bae Bug 1337791 - Part 2: http/2 origin frame extension. r=nwgh 2017-04-03 17:23:55 -04:00
Dragana Damjanovic 1c99ae8f32 Bug 1341572 - Fix multiple HalfOpen socket for a single transaction. r=mcmanus 2017-03-17 09:00:50 +01:00
Wei-Cheng Pan 5143918e81 Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus
Add MOZ_MUST_USE attirbute to headers and idl files.

MozReview-Commit-ID: 7nZQlZoDrv2

--HG--
extra : rebase_source : e8d9469a3b24932d95bf533c54f43c324ffa8c53
2016-12-27 15:22:07 +08:00
Patrick McManus a980860d80 Bug 1340655 - remove h1 pipeline support r=mayhemer 2017-02-17 15:35:37 -05:00
Sebastian Hengst 71318f787d Backed out changeset 379093669b39 (bug 1340655) for warning as err.or at nsHttpConnection.cpp(875). r=backout on a CLOSED TREE 2017-03-01 20:20:57 +01:00
Patrick McManus 63212ea3a1 Bug 1340655 - remove h1 pipeline support r=mayhemer
HTTP/1.1 pipelines have been subsumed by the more effective mux of spdy, h2, and soon quic.

The feature was never able to overcome the limitations of HoL blocking
and TCP reset, and their impact on performance and reliability.

Fundamentally mux is the only way we should be approaching that problem.

The massive amount of code - mostly heuristics to try and deal with
the HoL problem (by classifying things onto different transactions,
timers for broken servers, etc..) has become a maintenance burden with
minimal value given the default off state of the feature.

h2 is the new (working) strategy.

--HG--
extra : rebase_source : 5794957c1f078ca435480724d3caf9bdd861b7de
2017-02-17 15:35:37 -05:00
Patrick McManus 93f999e4af Bug 1322373 - TLS 1.3 early-data for HTTP/2. r=dragana,mcmanus 2017-02-21 15:19:46 -05:00
Honza Bambas 161afb3eae Bug 1326136 - Let nsHttpConnection close it's transaction on shutdown. r=mcmanus
--HG--
extra : rebase_source : 64ace3aba1174b82d74d3b872395dcc9e44c8a12
2017-02-16 06:50:00 -05:00
Dragana Damjanovic dd.mozilla@gmail.com ef19d6d0f4 Bug 1296288 - Add telemetry for TLS early-data. r=mcmanus
--HG--
extra : rebase_source : 0d62e936d2af4de539802dff046a3b8453e4d9c6
2016-09-13 02:32:00 -04:00