Closed Bug 544986 Opened 15 years ago Closed 9 years ago

Option to control the TCP receive buffer

Categories

(Core :: Networking, enhancement)

x86
Windows XP
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: bbsh, Assigned: mcmanus)

Details

(Whiteboard: [necko-active])

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20100201 Minefield/3.7a1pre Firefox/3.7 Build Identifier: In bug 454990 a preference was added to control the TCP send buffer size. An option to control the receive one would be useful too. On Vista and 7 this is less needed, but on XP the default buffer usually is under 32KB, which is too small. Chromium sets the buffer to 64KB if the OS version is XP, otherwise leaves it unchanged. If the latency is high enough, this causes a massive speedup. Implementing this would be very easy, it's the same thing but using PR_SockOpt_RecvBufferSize instead of PR_SockOpt_SendBufferSize. The best way to do this though is having a preference value of "-1" mean "autodetect" (for example 128K in XP, don't set on Vista), "0" to disable and any other value to set manually. Reproducible: Always
hardcoding this means we don't autotune
Assignee: nobody → mcmanus
Whiteboard: [necko-active]
From c2a4808fd4564172fe6fa8ad6612d41dfd320082 Mon Sep 17 00:00:00 2001 --- netwerk/base/nsSocketTransport2.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
Attachment #8716995 - Flags: review?(dd.mozilla)
so xp doesn't autotune, and by default it doesn't windowscale on the client. It chooses rwin according to what it thinks the link speed is. so I think the best we're going to do is chrome compat, which is basically check the established rwin, and if its less than 64KB (no scale), bump it up to 64KB. No need to make that an option
Attachment #8716995 - Flags: review?(dd.mozilla) → review+
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: