Closed Bug 1819556 Opened 2 years ago Closed 1 year ago

Remove nsSocketTransportService::ProbeMaxCount as it's not needed anymore

Categories

(Core :: Networking: HTTP, task, P2)

Unspecified
Windows
task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: valentin, Assigned: gregp)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

This mechanism was added in bug 692260 to deal with Windows XP not being able to poll more than 1000 sockets. I think we can remove this limitation now, and possibly improve performance a bit.

We can also remove the network_probe_maxcount and NETWORK_SESSION_AT_900FD probes.

Telemetry shows all users are able to poll up to 1000 sockets - see glam

Assignee: nobody → gp3033
Status: NEW → ASSIGNED
Pushed by gp3033@protonmail.com: https://hg.mozilla.org/integration/autoland/rev/48bcd4c43c3e Remove nsSocketTransportService::ProbeMaxCount r=kershaw,necko-reviewers

Backed out for causing bustage on nsSocketTransportService2.cpp

[task 2023-07-13T00:12:57.250Z] 00:12:57     INFO -  In file included from Unified_cpp_netwerk_base3.cpp:110:
[task 2023-07-13T00:12:57.250Z] 00:12:57    ERROR -  /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1646:17: error: variable has incomplete type 'struct rlimit'
[task 2023-07-13T00:12:57.251Z] 00:12:57     INFO -    struct rlimit rlimitData {};
[task 2023-07-13T00:12:57.251Z] 00:12:57     INFO -                  ^
[task 2023-07-13T00:12:57.252Z] 00:12:57     INFO -  /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1646:10: note: forward declaration of 'rlimit'
[task 2023-07-13T00:12:57.252Z] 00:12:57     INFO -    struct rlimit rlimitData {};
[task 2023-07-13T00:12:57.253Z] 00:12:57     INFO -           ^
[task 2023-07-13T00:12:57.254Z] 00:12:57    ERROR -  /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1647:17: error: use of undeclared identifier 'RLIMIT_NOFILE'
[task 2023-07-13T00:12:57.254Z] 00:12:57     INFO -    if (getrlimit(RLIMIT_NOFILE, &rlimitData) == -1) {  // rlimit broken - use min
[task 2023-07-13T00:12:57.255Z] 00:12:57     INFO -                  ^
[task 2023-07-13T00:12:57.255Z] 00:12:57    ERROR -  /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1667:13: error: use of undeclared identifier 'RLIMIT_NOFILE'
[task 2023-07-13T00:12:57.256Z] 00:12:57     INFO -    setrlimit(RLIMIT_NOFILE, &rlimitData);
[task 2023-07-13T00:12:57.257Z] 00:12:57     INFO -              ^
[task 2023-07-13T00:12:57.257Z] 00:12:57    ERROR -  /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1668:18: error: use of undeclared identifier 'RLIMIT_NOFILE'
[task 2023-07-13T00:12:57.258Z] 00:12:57     INFO -    if ((getrlimit(RLIMIT_NOFILE, &rlimitData) != -1) &&
[task 2023-07-13T00:12:57.258Z] 00:12:57     INFO -                   ^
[task 2023-07-13T00:12:57.259Z] 00:12:57     INFO -  4 errors generated.
[task 2023-07-13T00:12:57.259Z] 00:12:57    ERROR -  gmake[4]: *** [/builds/worker/checkouts/gecko/config/rules.mk:661: Unified_cpp_netwerk_base3.o] Error 1
[task 2023-07-13T00:12:57.260Z] 00:12:57     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/netwerk/base'
Flags: needinfo?(gp3033)

Thanks, working on it.

Flags: needinfo?(gp3033)
Pushed by gp3033@protonmail.com: https://hg.mozilla.org/integration/autoland/rev/1dad116419de Remove nsSocketTransportService::ProbeMaxCount r=kershaw,necko-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: