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

499 Коммитов

Автор SHA1 Сообщение Дата
Valentin Gosu 6b419daeb0 Bug 1702529 - Pass NetAddr pointers to rust instead of a serialization r=necko-reviewers,dragana
It seems that the serialization generated by inet_ntop_internal via
getnameinfo is sometimes wrong, returning `?` instead of serializing the
IP we pass in.
It's also inefficient to keep passing the serialization to and from rust
code - instead it's much easier to just pass a pointer to the NetAddr
union and build a proper SocketAddr instance on the rust side from
from the bytes instead of parsing the serialization

Differential Revision: https://phabricator.services.mozilla.com/D129489
2021-10-27 15:28:41 +00:00
Cristian Tuns d766fa0f20 Backed out changeset ba94ff2a7696 (bug 1702529) for causing build bustages. CLOSED TREE 2021-10-27 07:07:17 -04:00
Valentin Gosu 609bf1922f Bug 1702529 - Pass NetAddr pointers to rust instead of a serialization r=necko-reviewers,dragana
It seems that the serialization generated by inet_ntop_internal via
getnameinfo is sometimes wrong, returning `?` instead of serializing the
IP we pass in.
It's also inefficient to keep passing the serialization to and from rust
code - instead it's much easier to just pass a pointer to the NetAddr
union and build a proper SocketAddr instance on the rust side from
from the bytes instead of parsing the serialization

Differential Revision: https://phabricator.services.mozilla.com/D129489
2021-10-27 10:44:46 +00:00
Valentin Gosu 2650af618b Bug 1733356 - Fix non-unified build errors in netwerk/socket/ r=necko-reviewers,kershaw
Depends on D129499

Differential Revision: https://phabricator.services.mozilla.com/D129500
2021-10-27 08:52:26 +00:00
Dragana Damjanovic e4d1ab4dd7 Bug 1733603 - Neqo version 0.5.3 r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D127273
2021-10-01 18:07:10 +00:00
Dragana Damjanovic c116b60b2c Bug 1382886 - Add a callback when the handshake is done. r=necko-reviewers,kershaw,keeler
Differential Revision: https://phabricator.services.mozilla.com/D123601
2021-09-22 09:19:30 +00:00
Butkovits Atila e097708c27 Backed out 7 changesets (bug 1382886) for causing very frequent networking crashes. a=backout DONTBUILD
Backed out changeset e0d76ea1bdd2 (bug 1382886)
Backed out changeset 1db60c600b97 (bug 1382886)
Backed out changeset c922a30d444e (bug 1382886)
Backed out changeset 7f2260b49e60 (bug 1382886)
Backed out changeset 0c049a8ee4a8 (bug 1382886)
Backed out changeset 632eefa7e529 (bug 1382886)
Backed out changeset fe6b8f41ca83 (bug 1382886)
2021-09-18 12:37:24 +03:00
Dragana Damjanovic 1f0044c034 Bug 1382886 - Add a callback when the handshake is done. r=necko-reviewers,kershaw,keeler
Differential Revision: https://phabricator.services.mozilla.com/D123601
2021-09-17 13:19:00 +00:00
Manuel Bucher ecf25dc8fa Bug 1730672 - Update neqo to 0.5.0 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D125528
2021-09-14 13:37:19 +00:00
Dragana Damjanovic 0a98b4c4a4 Bug 1728735 - Neqo version 0.4.32 r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D124320
2021-09-02 21:28:15 +00:00
Dragana Damjanovic 9c5412108c Bug 1718719 - Disable the TLS early-data if proxy is use r=necko-reviewers,keeler,kershaw
Currently we do not use the early-data when a proxy is used, but we do not disable it in the nss layer.

Differential Revision: https://phabricator.services.mozilla.com/D123492
2021-09-01 19:57:10 +00:00
Sandor Molnar 1a9baf6591 Backed out changeset 028b3aadad28 (bug 1718719) for causing bustages in build fuzzing. CLOSED TREE 2021-09-01 17:46:12 +03:00
Dragana Damjanovic 75908ae9b0 Bug 1718719 - Disable the TLS early-data if proxy is use r=necko-reviewers,keeler,kershaw
Currently we do not use the early-data when a proxy is used, but we do not disable it in the nss layer.

Differential Revision: https://phabricator.services.mozilla.com/D123492
2021-09-01 13:05:12 +00:00
Dragana Damjanovic 38fd6ab7be Bug 1728268 - Update neqo to 0.4.31 r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D124012
2021-08-31 08:50:59 +00:00
Andi-Bogdan Postelnicu 2fc4f70e9b Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium
Automatically generated path that adds flag `REQUIRES_UNIFIED_BUILD = True` to `moz.build`
when the module governed by the build config file is not buildable outside on the unified environment.

This needs to be done in order to have a hybrid build system that adds the possibility of combing
unified build components with ones that are built outside of the unified eco system.

Differential Revision: https://phabricator.services.mozilla.com/D122345
2021-08-25 10:46:17 +00:00
Andi-Bogdan Postelnicu 92603d5088 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,webdriver-reviewers,necko-reviewers,valentin
Updated with rustfmt 1.4.37-stable (a178d03 2021-07-26)

Differential Revision: https://phabricator.services.mozilla.com/D122815
2021-08-23 09:30:24 +00:00
Dragana Damjanovic 3dafd2ce8f Bug 1723218 - Change flow control limits in HTTP/3 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D121427
2021-08-19 14:34:30 +00:00
Dragana Damjanovic 71f9be8eaa Bug 1724896 - Sanitize headers r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D122294
2021-08-13 18:07:01 +00:00
Dragana Damjanovic 5a07d5d023 Bug 1724196 - Neqo version 0.4.30 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D122077
2021-08-09 11:36:54 +00:00
Ryan VanderMeulen 52c9905518 Backed out changeset 83204ae613b7 (bug 1724196) for causing topcrash bug 1724408. 2021-08-06 09:22:57 -04:00
Dragana Damjanovic 65634e4bc3 Bug 1724196 - Neqo version 0.4.29 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D121860
2021-08-05 14:31:12 +00:00
Mike Hommey e0929c4c22 Bug 1722652 - Reduce the number of flags passed to bindgen. r=firefox-build-system-reviewers,necko-reviewers,andi,dragana
Originally, we only were using bindgen for stylo, and we also went a bit
overkill by including a lot of extra CFLAGS in there, which end up
being unnecessary. So we now only pass a more minimal set of flags, and
add some extra CFLAGS in cases where they are necessary.

Differential Revision: https://phabricator.services.mozilla.com/D121043
2021-07-28 20:37:49 +00:00
Kershaw Chang 6d7d02f5f7 Bug 1720648 - Make necko work with neqo 0.4.28, r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D119991
2021-07-15 19:19:55 +00:00
Kershaw Chang 2c55ee8adf Bug 1720648 - Neqo v0.4.28, r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D119990
2021-07-15 19:19:55 +00:00
Kershaw Chang 3b354571f5 Bug 1654507 - Part1: Plumbing for setting ech config, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D119402
2021-07-13 09:24:25 +00:00
Dragana Damjanovic 74148ad97b Bug 1719316 - Adapt necko to the new version of neqo r=necko-reviewers,kershaw
Now neqo has a Header structure instead of tuple (String, String).

Differential Revision: https://phabricator.services.mozilla.com/D119261
2021-07-08 11:52:29 +00:00
Dragana Damjanovic 1596c3c571 Bug 1719316 - Neqo version 0.4.27 r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D119196
2021-07-08 11:52:28 +00:00
Dragana Damjanovic d16580df6e Bug 1717505 - Expose ECH reltated events and error from neqo to necko r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D118575
2021-06-25 10:39:55 +00:00
Dragana Damjanovic 778175efc9 Bug 1717505 - Update neqo to 0.4.26 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D118495
2021-06-25 10:39:54 +00:00
Valentin Gosu 1a1f42da37 Bug 1714307 - Run modernize-use-default-member-init --fix check on netwerk r=necko-reviewers,kershaw
This changeset is the result of adding modernize-use-default-member-init to
tools/clang-tidy/config.yaml then proceeding to run
`./mach static-analysis check netwerk/ --fix`
I then went through the resulting fix and manually updated all of the member
variables which were missed due to them having a non-trivial constructor.

Note that the tool was only run on Linux, so code that only runs on some
platforms may have been missed.

The member variables that are still initialized in the contructor definition
are:
  - bitfields (not all currently supported compilers allow default-member-init
  - variables that are initialized via a parameter
  - variables that use code not visible in the header file

There are a few advantages to landing this change:
- fewer lines of code - now declaration is in the same place as initialization
  this also makes it easier to see when looking at the header.
- it makes it harder to miss initializing a member when adding a new contructor
- variables that depend on an include guard look much nicer now

Additionally I removed some unnecessary reinitialization of NetAddr members
(it has a constructor that does that now), and changed nsWifiScannerDBus to
use the thread-safe strtok_r instead of strtok.

Differential Revision: https://phabricator.services.mozilla.com/D116980
2021-06-11 07:10:41 +00:00
Csoregi Natalia 938a6943c6 Backed out changeset 6e00f8bd2acc (bug 1714307) for causing hazard bustage. CLOSED TREE 2021-06-09 21:50:03 +03:00
Valentin Gosu d1513f313e Bug 1714307 - Run modernize-use-default-member-init --fix check on netwerk r=necko-reviewers,kershaw
This changeset is the result of adding modernize-use-default-member-init to
tools/clang-tidy/config.yaml then proceeding to run
`./mach static-analysis check netwerk/ --fix`
I then went through the resulting fix and manually updated all of the member
variables which were missed due to them having a non-trivial constructor.

Note that the tool was only run on Linux, so code that only runs on some
platforms may have been missed.

The member variables that are still initialized in the contructor definition
are:
  - bitfields (not all currently supported compilers allow default-member-init
  - variables that are initialized via a parameter
  - variables that use code not visible in the header file

There are a few advantages to landing this change:
- fewer lines of code - now declaration is in the same place as initialization
  this also makes it easier to see when looking at the header.
- it makes it harder to miss initializing a member when adding a new contructor
- variables that depend on an include guard look much nicer now

Additionally I removed some unnecessary reinitialization of NetAddr members
(it has a constructor that does that now), and changed nsWifiScannerDBus to
use the thread-safe strtok_r instead of strtok.

Differential Revision: https://phabricator.services.mozilla.com/D116980
2021-06-09 10:20:04 +00:00
Dragana Damjanovic eb3ec2f4ca Bug 1713580 - Enable the cubic congestion control for HTTP/3 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D116366
2021-06-07 08:48:02 +00:00
Valentin Gosu d595491cc7 Bug 1714307 - Autofix static-analysis warnings in netwerk/ r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D116701
2021-06-04 12:35:16 +00:00
Butkovits Atila 692bda1ca1 Backed out changeset c4b44c4ef15b (bug 1714307) for causing build bustages on nsHTTPCompressConv.h. CLOSED TREE 2021-06-04 13:53:37 +03:00
Valentin Gosu 98146ae90b Bug 1714307 - Autofix static-analysis warnings in netwerk/ r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D116701
2021-06-04 10:00:55 +00:00
Dragana Damjanovic 4e508bd5ca Bug 1712440 - Update neqo to version 0.4.25 r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D115758
2021-05-25 21:52:27 +00:00
Dragana Damjanovic 425a67f2e1 Bug 1708678 - Update neqo to version 0.4.24 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D113970
2021-05-06 18:10:45 +00:00
Dragana Damjanovic fe31a10105 Bug 1708567 - Add support for HTTP3 version 1 behind a pref r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D113881
2021-04-30 11:33:39 +00:00
Andi-Bogdan Postelnicu a2692f41ac Bug 1617369 - Reformat recent rust changes with rustfmt. r=webdriver-reviewers,kvark
Updated with rustfmt 1.4.36-stable (7de6968 2021-02-07)

\# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D113295
2021-04-27 06:05:08 +00:00
Kershaw Chang f5610eabae Bug 1699463 - Update neqo to v0.4.23 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D108961
2021-03-18 16:18:27 +00:00
Brindusan Cristian 58b5969968 Backed out 2 changesets (bug 1698438) for windows build bustages. CLOSED TREE
Backed out changeset a27e4101f65f (bug 1698438)
Backed out changeset 257f86638d46 (bug 1698438)
2021-03-17 14:52:27 +02:00
Kershaw Chang d6486313b6 Bug 1698438 - Adapt neqo_glue to v0.4.22 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D108752
2021-03-17 12:15:55 +00:00
Kershaw Chang cb78102ea6 Bug 1698438 - Neqo version 0.4.22 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D108750
2021-03-17 12:15:54 +00:00
Kershaw Chang f23916698a Bug 1689555 - Turn on the Prefer Address feature r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D108187
2021-03-16 08:27:36 +00:00
Kershaw Chang 11283cf8b1 Bug 1697791 - Add support for draft 31 and 32 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D108402
2021-03-15 14:44:03 +00:00
Sylvestre Ledru 81b14e2ac7 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
Updated with clang-format version 11.0.1 (taskcluster-B6bdwSKDRF-luRQWXBuzpA)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D108334
2021-03-15 08:45:29 +00:00
Dragana Damjanovic dc02d58682 Bug 1687392 - Remove unnecessary queuing of QUIC packets r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106425
2021-03-08 16:11:19 +00:00
Sylvestre Ledru dd5945e932 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
Updated with rustfmt 1.4.18-stable (8157a3f 2020-07-15)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D106921
2021-03-02 15:35:36 +00:00
Dragana Damjanovic 6ee3b95ac7 Bug 1689554 - Give the address received with PRRecvFrom to neqo and use the address from neqo to call PRSendTo r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105194
2021-02-26 08:42:49 +00:00