Forks a child process to safely test Apple's private sendmsg_x/recvmsg_x
APIs via neqo-udp: verifies batched sends, ECN round-trips, and source
address metadata. If the probe succeeds, enables the fast path for all
subsequently created QUIC sockets in the socket process via IPC.
Records the result as a Glean boolean metric.
Differential Revision: https://phabricator.services.mozilla.com/D291709
Forks a child process to safely test Apple's private sendmsg_x/recvmsg_x
APIs via neqo-udp: verifies batched sends, ECN round-trips, and source
address metadata. If the probe succeeds, enables the fast path for all
subsequently created QUIC sockets in the socket process via IPC.
Records the result as a Glean boolean metric.
Differential Revision: https://phabricator.services.mozilla.com/D291709
When network.process.enabled is true (the desktop default), TLS handshakes
happen in the socket process, so SSLTokensCache::Put() is called there while
the parent process cache stays empty — nothing is ever persisted to disk and
0-RTT session resumption never fires after a restart.
This patch wires up the three missing data flows:
- Startup: parent loads ssl_tokens_cache.bin and forwards tokens to the
socket process via LoadSSLTokensCache.
- Runtime: socket process pushes its live cache to the parent on idle-daily
and application-background via SSLTokensCacheData; parent persists on the
next scheduled write.
- Shutdown: parent requests a final flush from the socket process via
FlushSSLTokensCache() before writing the file during ProfileBeforeChange.
Differential Revision: https://phabricator.services.mozilla.com/D294106
When network.process.enabled is true (the desktop default), TLS handshakes
happen in the socket process, so SSLTokensCache::Put() is called there while
the parent process cache stays empty — nothing is ever persisted to disk and
0-RTT session resumption never fires after a restart.
This patch wires up the three missing data flows:
- Startup: parent loads ssl_tokens_cache.bin and forwards tokens to the
socket process via LoadSSLTokensCache.
- Runtime: socket process pushes its live cache to the parent on idle-daily
and application-background via SSLTokensCacheData; parent persists on the
next scheduled write.
- Shutdown: parent requests a final flush from the socket process via
FlushSSLTokensCache() before writing the file during ProfileBeforeChange.
Differential Revision: https://phabricator.services.mozilla.com/D294106
When network.process.enabled is true (the desktop default), TLS handshakes
happen in the socket process, so SSLTokensCache::Put() is called there while
the parent process cache stays empty — nothing is ever persisted to disk and
0-RTT session resumption never fires after a restart.
This patch wires up the three missing data flows:
- Startup: parent loads ssl_tokens_cache.bin and forwards tokens to the
socket process via LoadSSLTokensCache.
- Runtime: socket process pushes its live cache to the parent on idle-daily
and application-background via SSLTokensCacheData; parent persists on the
next scheduled write.
- Shutdown: parent requests a final flush from the socket process via
FlushSSLTokensCache() before writing the file during ProfileBeforeChange.
Differential Revision: https://phabricator.services.mozilla.com/D294106
When network.process.enabled is true (the desktop default), TLS handshakes
happen in the socket process, so SSLTokensCache::Put() is called there while
the parent process cache stays empty — nothing is ever persisted to disk and
0-RTT session resumption never fires after a restart.
This patch wires up the three missing data flows:
- Startup: parent loads ssl_tokens_cache.bin and forwards tokens to the
socket process via LoadSSLTokensCache.
- Runtime: socket process pushes its live cache to the parent on idle-daily
and application-background via SSLTokensCacheData; parent persists on the
next scheduled write.
- Shutdown: parent requests a final flush from the socket process via
FlushSSLTokensCache() before writing the file during ProfileBeforeChange.
Differential Revision: https://phabricator.services.mozilla.com/D294106
Switch all six SendRequestMemoryReport implementations to use the
promise-returning overload with ->Then(). This also removes the needless
[&] lambda captures that were present in the callback-based versions.
Differential Revision: https://phabricator.services.mozilla.com/D292771
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.
In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.
One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.
Most of the heavy lifting was done through:
$ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
$ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'
Differential Revision: https://phabricator.services.mozilla.com/D268706
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.
In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.
One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.
Most of the heavy lifting was done through:
$ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
$ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'
Differential Revision: https://phabricator.services.mozilla.com/D268706
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.
In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.
One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.
Most of the heavy lifting was done through:
$ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
$ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'
Differential Revision: https://phabricator.services.mozilla.com/D268706
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.
In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.
One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.
Most of the heavy lifting was done through:
$ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
$ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'
Differential Revision: https://phabricator.services.mozilla.com/D268706
This patch add aggregation for traces collected using the gecko-trace
component in Socket, Utility and Content processes.
It, for now, collects local traces per process, waits for them to
finish, and if they contain any events, sends them to the parent
process.
In the parent process we submit a custom glean ping once our trace
buffer is overfull or we are idle for more then a configured amount.
Differential Revision: https://phabricator.services.mozilla.com/D255175
This allows us to use a consistent size for the dnsFlags field.
across different files (previously some would use uint16_t and some uint32_t).
It also improves type safety - making sure we don't pass in the wrong value
to DNSFlags.
Depends on D164856
Differential Revision: https://phabricator.services.mozilla.com/D164857
This allows us to use a consistent size for the dnsFlags field.
across different files (previously some would use uint16_t and some uint32_t).
It also improves type safety - making sure we don't pass in the wrong value
to DNSFlags.
Depends on D164856
Differential Revision: https://phabricator.services.mozilla.com/D164857
This allows us to use a consistent size for the dnsFlags field.
across different files (previously some would use uint16_t and some uint32_t).
It also improves type safety - making sure we don't pass in the wrong value
to DNSFlags.
Depends on D164856
Differential Revision: https://phabricator.services.mozilla.com/D164857
This prevents copies and avoids the hack we have to avoid this, which
right now is using nsDependent{C,}String.
Non-virtual actors can still use `nsString` if they need to on the
receiving end.
Differential Revision: https://phabricator.services.mozilla.com/D152519
This is a complete rewrite of RemoteLazyInputStream to run off of its own
toplevel protocol, rather than being managed by other protocols like
PBackground or PContent. This should improve performance thanks to no longer
needing to operate on a main or worker thread, and due to no longer needing the
migration step for the stream actor.
This also acts as a step towards no longer requiring a manager actor to
serialize input streams, as the type is now actor-agnostic, and should support
being sent over IPC between any pair of processes.
Differential Revision: https://phabricator.services.mozilla.com/D141040
This interface should no longer be required due to the changes in part 1
limiting the complexity of IPCStream instances and limiting the number of file
descriptors which a single stream can attach to a message.
Removing this interface is necessary to serialize nsIInputStream instances over
arbitrary toplevel protocols and non-protocol IPC in the future.
Differential Revision: https://phabricator.services.mozilla.com/D141039
This gives us various positive benefits, such as using a shared memory ring
buffer for faster communication, not having data streaming being bound to the
thread which transferred the nsIInputStream (which is often the main thread),
and the ability for some backpressure to be applied to data streaming.
After this change, the "delayed start" parameter for IPCStream serialization is
less relevant, as backpressure will serve a similar purpose. It will still be
used to determine whether or not to use RemoteLazyInputStream when serializing
from the parent process.
Differential Revision: https://phabricator.services.mozilla.com/D141038