Commit Graph

2373 Commits

Author SHA1 Message Date
Daniel Holbert
959af08a05 backout 118c07dc56f9 (bug 742179) for windows build bustage 2012-04-05 10:56:10 -07:00
Doug Turner
7a33df3fb0 Bug 742179 - Move MakeRandomString to xpcom/ds. r=bsmedberg 2012-04-05 09:50:55 -07:00
Brian Smith
9ae70b601b Bug 736903: nsHttpChannel wraps the aOffset value it passes to its stream listener instead of clamping it, r=cbiesinger
--HG--
extra : rebase_source : 28bc8bdddea0cac6a41482920d059b523197ef03
2012-04-04 18:57:22 -07:00
Brian Smith
afd8019c8a Bug 736895: Suppress warning warning C4355: 'this' : used in base member initializer list in nsHttpChannel::nsHttpChannel, r=cbiesinger
--HG--
extra : rebase_source : bbcacf34a97671cb4750888a2468f6563c52b99a
2012-04-04 18:55:21 -07:00
Brian Smith
aea9246fea Bug 736887: Fix compiler warning in nsHttpChannel.cpp: warning C4244: 'argument' : conversion from 'double' to 'PRTime', possible loss of data, r=cbiesinger
--HG--
extra : rebase_source : 7c100821353b77133108e08f6bf0fd53195c0f9a
2012-04-04 18:54:03 -07:00
Patrick McManus
1a02517634 bug 739023 nightly crash in nshttpchannel::OnDataAvailable() from Restart r=honzab
--HG--
extra : rebase_source : ccb196fc38394d9ef5e0a4bdf51ea714a57e7224
2012-04-04 21:19:20 -04:00
Patrick McManus
a48adf407a bug 741056 - nightly crash https sites with authenticated proxy r=honzab 2012-04-04 09:39:21 -04:00
Veeraya Pupatwibul
26e9a6a204 Bug 741333 - Remove PRBool/PR_TRUE/PR_FALSE that crept in r=Ms2ger 2012-04-04 11:15:10 +02:00
Ryan VanderMeulen
8a1ce69485 Backout 17deb5f61b4d (bug 150073) due to build bustage. a=shouldausedtryfirst 2012-04-03 20:22:42 -04:00
Shriram Kunchanapalli
a0a99e8f8a Bug 150073 - Remove nsCRT:: in nsCRT::strlen. f=sgautherie, r=dougt 2012-02-18 19:17:01 +05:30
Patrick McManus
ba0bc6694b bug 739617 - cannot upload large files r=honzab
--HG--
extra : rebase_source : 5ea85a021233cf79a539980efc859a2d5372fe53
2012-04-02 20:36:11 -04:00
Ryan VanderMeulen
ab3afe63c5 Backout bug 674728 part 3 due to missing reviews. 2012-03-31 18:18:08 -04:00
Sinker Li
e655e3b281 Bug 674728 - Part 3: Evict cache asynchronized. r=honzab 2012-03-30 20:52:07 -04:00
Sinker Li
571cafb2af Bug 674728 - Part 2: Testcase for pinned application caches. r=honzab 2012-03-30 20:52:07 -04:00
Sinker Li
16dba2c671 Bug 674728 - Part 1: Pinned apps get higher priority for cache. r=honzab 2012-03-30 20:52:06 -04:00
Nick Hurley
44b99508e8 bug 712914 - add some sanity checking when (de)serializing security info in the disk cache. r=michal 2012-03-30 11:21:01 +02:00
Patrick McManus
f6ed4d905f Bug 739023 - Disabling the Restart-in-progess logic temporarily since suspected of causing crashes, r=honzab 2012-03-30 00:40:42 +02:00
Michal Novotny
0a86986633 Bug 649194 - Abort when the cache IO thread can't be created 2012-03-27 10:20:54 +02:00
Michael Wu
2f526bb0dd Bug 737196 - Make camera code build on gonk-ics, r=cjones 2012-03-23 15:45:47 -04:00
Ms2ger
0ef036839c No bug - Remove always-true comparison. 2012-03-24 09:18:09 +01:00
Patrick McManus
083437c9ff bug 717759 - negative pipeline feedback on img decode problem r=bz r=jdrew r=honzab 2012-03-22 19:39:32 -04:00
Patrick McManus
31504a7ee5 bug 717350 doom cache entry on last-modified mismatch r=honzab 2012-03-22 19:39:31 -04:00
Patrick McManus
bd0154c665 bug 671591 - restart partial http transaction (in progress) r=honzab 2012-03-22 19:39:31 -04:00
Patrick McManus
cca184acac bug 603514 - http stalled read detection r=honzab
When a connection that involves a pipelined transaction has been stalled (i.e.
idle with an open transaction, not an idle persistent connection) for a
second move any transactions that are pipelined after the current one onto
different connections (and implicitly close this connection when done with the
current transaction).

when it has been stalled for 10 seconds (pref configurable), cancel the current
transaction itself too - depending on its state it can hopefully be restarted
on a clean connection.
2012-03-22 19:39:31 -04:00
Patrick McManus
f5c0c33db7 bug 603512 - large objects block pipelines r=honzab
the type and state patch tries hard not to form pipelines behind resources that
could become head of line blockers. But of course that requires the ability to
predict the future, and won't be perfect.

This patch reacts to a transaction that has a large response body (defined by
either a large content-length header or actually reading a large number of
chunked bytes) by cancelling any transactions that have been pipelined down the
same connection and rescheduling them elsewhere. It also changes the type of
the connection to "solo", which prevents new transactions from being pipelined
onto this one and provides class-specific negative feedback to the pipeline
manager so that near-future requests to the same host of the same type (e.g.
general) will not be pipelined but other types (e.g. img or js/css) can still
do that.

Content-Length is ideal, because it allows us to identify the problem so early.
But even actually reading the document for a fairly long time gives it a fairly
high probability of not ending soon. (i.e. long document sizes are spread over
a larger range than small ones. duh.)

The pref network.http.pipelining.maxsize controls the threshold. I set the
default at 300KB, which is roughly the bandwidth delay product of a 2mbit 120ms
rtt connection and 1 rtt is mostly what you are giving up by canceling it on
one connection and sending it on another. (modulo maybe needing a handshake).
2012-03-22 19:39:31 -04:00
Patrick McManus
a034a9d50a bug 665885 respect keepalive: "max=" attribute r=honzab 2012-03-22 19:39:31 -04:00
Patrick McManus
8d78fbf9c8 bug 737155 - httpconnectionmgr::processPendingQ allow more than 1 with pipeline r=honzab 2012-03-22 19:39:31 -04:00
Patrick McManus
15a48d8534 bug 599164 pipeline with type and state r=honzab 2012-03-22 19:39:31 -04:00
Patrick McManus
bba26f5a30 bug 597684 Implement HTTP Assoc-req and Banned Pipelines on nsHttpConnectionInfo r=honzab 2012-03-22 19:39:31 -04:00
Patrick McManus
afefeddb70 bug 447866 http pipelining is bursty r=honzab
--HG--
extra : rebase_source : 87370228074eaff2615b8dcef9b3c0c9b919b3c3
2012-03-22 19:39:31 -04:00
Patrick McManus
10d7ced8a4 bug 447866 - patch pre.1 for empty nsHttpPipeline::TakeSubTransactions r=honzab
--HG--
extra : rebase_source : 5c21007525883fc74dc70332cf74d8d0bacd9147
2012-03-22 19:39:28 -04:00
Michal Novotny
2e1c0f11ff Bug 722033 - Invalidate cache entry in nsHttpChannel::DoInvalidateCacheEntry() asynchronously 2012-03-22 23:54:20 +01:00
Michal Novotny
90373c46db Bug 722033 - Use asyncOpenCacheEntry() in nsHttpChannel::OpenOfflineCacheEntryForWriting() 2012-03-22 23:53:55 +01:00
Michal Novotny
59959982fc Bug 722033 - Use asyncOpenCacheEntry() in nsHttpChannel when flag LOAD_BYPASS_LOCAL_CACHE_IF_BUSY is set 2012-03-22 23:53:10 +01:00
Henri Sivonen
3dfb9fb844 Bug 737417 part 1 - Split charset source constants out of nsIParser.h. r=smaug. 2012-03-22 16:42:42 +02:00
Jim Mathies
4c2a25f437 Bug 737986 - win8 dev kit fixup for win wifi includes, r=dougt 2012-03-22 09:18:43 -05:00
julian.reschke@gmx.de
2cf0629cb1 Bug 714302: add suport for HTTP status code 308 r=mcmanus
--HG--
extra : rebase_source : 2e4a46ac5ebe89a36fb4b12b1985d07d674db5e8
2012-03-21 16:13:42 -04:00
julian.reschke@gmx.de
db53688a39 Bug 384571: RFC 2231 parameters not decoded when appearing in reversed order. r=jduell 2012-03-20 14:08:30 -07:00
Matt Brubeck
b1e708752d Back out 1bbe7ea3a01e through 672cc4ee2dd9 because of mochitest-browser-chrome leaks 2012-03-20 12:53:10 -07:00
Patrick McManus
e9dedc0c35 bug 717759 - negative pipeline feedback on img decode problem r=bz r=jdrew r=honzab
--HG--
extra : rebase_source : cb9795b5442102a777602f59c225ab9572e06cea
2012-03-20 13:11:32 -04:00
Patrick McManus
ace7949788 bug 717350 doom cache entry on last-modified mismatch r=honzab
--HG--
extra : rebase_source : 5c8692c94bf7e5dcb2d381a85e06bddbabffe22c
2012-03-20 13:11:32 -04:00
Patrick McManus
87998226b0 bug 671591 - restart partial http transaction (in progress) r=honzab
--HG--
extra : rebase_source : 9f71e1803e25c10f6be5f48f324eb47fa8d707c3
2012-03-20 13:11:32 -04:00
Patrick McManus
e691465ad1 bug 603514 - http stalled read detection r=honzab
When a connection that involves a pipelined transaction has been stalled (i.e.
idle with an open transaction, not an idle persistent connection) for a
second move any transactions that are pipelined after the current one onto
different connections (and implicitly close this connection when done with the
current transaction).

when it has been stalled for 10 seconds (pref configurable), cancel the current
transaction itself too - depending on its state it can hopefully be restarted
on a clean connection.

--HG--
extra : rebase_source : 58377c9eab2f8a81b7a2d3b9a5f12e1134da4031
2012-03-20 13:11:32 -04:00
Patrick McManus
feb108ee8d bug 603512 - large objects block pipelines r=honzab
the type and state patch tries hard not to form pipelines behind resources that
could become head of line blockers. But of course that requires the ability to
predict the future, and won't be perfect.

This patch reacts to a transaction that has a large response body (defined by
either a large content-length header or actually reading a large number of
chunked bytes) by cancelling any transactions that have been pipelined down the
same connection and rescheduling them elsewhere. It also changes the type of
the connection to "solo", which prevents new transactions from being pipelined
onto this one and provides class-specific negative feedback to the pipeline
manager so that near-future requests to the same host of the same type (e.g.
general) will not be pipelined but other types (e.g. img or js/css) can still
do that.

Content-Length is ideal, because it allows us to identify the problem so early.
But even actually reading the document for a fairly long time gives it a fairly
high probability of not ending soon. (i.e. long document sizes are spread over
a larger range than small ones. duh.)

The pref network.http.pipelining.maxsize controls the threshold. I set the
default at 300KB, which is roughly the bandwidth delay product of a 2mbit 120ms
rtt connection and 1 rtt is mostly what you are giving up by canceling it on
one connection and sending it on another. (modulo maybe needing a handshake).

--HG--
extra : rebase_source : ebc44f8dfc3fa7bcee613ff3b74269d908ceac51
2012-03-20 13:11:32 -04:00
Patrick McManus
f9d6e896ee bug 665885 respect keepalive: "max=" attribute r=honzab
--HG--
extra : rebase_source : ce4009c19bb786388338778d594ca8038a4398c1
2012-03-20 13:11:32 -04:00
Patrick McManus
800ed54ae5 bug 737155 - httpconnectionmgr::processPendingQ allow more than 1 with pipeline r=honzab
--HG--
extra : rebase_source : 94c50c125fc66c9d5b4389e20b0187ee40c2e315
2012-03-20 13:11:32 -04:00
Patrick McManus
85224929d2 bug 599164 pipeline with type and state r=honzab
--HG--
extra : rebase_source : b060665a1726eab3e3ef0ab0d94c34cfea5c1460
2012-03-20 13:11:32 -04:00
Patrick McManus
7200e2b607 bug 597684 Implement HTTP Assoc-req and Banned Pipelines on nsHttpConnectionInfo r=honzab
--HG--
extra : rebase_source : 26243e1af9e0554553520dae435cc4dcfd551746
2012-03-20 13:11:32 -04:00
Patrick McManus
00fcb68cbc bug 447866 http pipelining is bursty r=honzab
--HG--
extra : rebase_source : e927c5961b2f6c79c1aa73897900e95ed3f286c5
2012-03-20 13:11:32 -04:00
Gervase Markham
e9f63d2669 Bug 716607 - Add .pm, .wf, .yt to PSL. r=pkasting. 2012-03-20 15:04:40 +00:00
Phil Ringnalda
532bb57e36 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-03-17 16:57:05 -07:00
Chris Jones
df8ec0c99c Bug 736778: Work around probable compiler bug breaking DEBUG builds of GonkCaptureProvider. r=fabrice (npotb) 2012-03-17 14:42:24 -07:00
Jason Duell
2f5f7cb248 Backed out changeset cd5ac132e763 2012-03-15 23:36:01 -07:00
Jason Duell
9e91c23e8d Backed out changeset cd5ac132e763 2012-03-15 23:35:51 -07:00
Jason Duell
2b5c96846d Backed out changeset 5aaec7f808b6 2012-03-15 20:56:23 -07:00
Jason Duell
e1a70438bd Backed out changeset 5aaec7f808b6 2012-03-15 20:55:44 -07:00
John Daggett
47ad96505d Bug 512566. Changes based on review comments. r=bz,jfkthame 2012-03-16 12:31:01 +09:00
John Daggett
914cbcc71a Bug 512566. Load font data url's synchronously, netwerk/style changes. r=bz 2012-03-16 12:31:01 +09:00
Jason Duell
6ddc2df4a6 Bug 664163: I will back this out when xpcshell test_traceable.js fails eventually. r=jduell 2012-03-15 18:54:58 -07:00
julian.reschke@gmx.de
ee67bebbe2 Bug 384571: RFC 2231 parameters not decoded when appearing in reversed order r=jduell 2012-03-04 14:12:00 -08:00
Jason Duell
2823d113a3 Bug 648878 - I will backout: investigating inbound-only failure r=jduell 2012-03-15 13:00:20 -07:00
Jason Duell
406a6ac98a Backed out c9265ada6f40 2012-03-15 15:05:41 -07:00
Jason Duell
6d25ca614d Backed out changeset c9265ada6f40 2012-03-15 15:05:22 -07:00
Derrick Rice
a921c7c6cf Bug 732363 - Avoid running test_net_addr on windows; it is failing for unknown reasons (race?) r=jdm 2012-03-15 07:10:00 -04:00
Patrick McManus
4465abacbf bug 735552 - wrong assert on shutdown in nsHttpConnectionMgr::ReportSpdyConnection r=honzab
--HG--
extra : rebase_source : 8baf5fbae8d9ad8196fd699191c0013f7ea8f424
2012-03-15 00:03:04 -04:00
Phil Ringnalda
57a4a15d09 Back out 9899522b6ad9 (bug 664163) 2012-03-13 22:11:55 -07:00
Jason Duell
60a0003b1e Bug 664163: Yes this will get backed out: see bug. r=jdm 2012-03-13 18:46:30 -07:00
Jason Duell
d595edfb04 Backed out changeset fd30aea30b03 2012-03-13 15:12:46 -07:00
Jason Duell
90a9174f19 Backed out changeset fd30aea30b03 2012-03-13 15:10:01 -07:00
Daniel Holbert
e0c3342eeb Bug 621446: followup to investigation patch - wrap MSVC-only pragma in ifdef so other compilers don't complain about it. r=jduell 2012-03-13 14:57:28 -07:00
Jason Duell
1255fb01e1 Bug 664163 - Fix Get(Local|Remote)(Address|Port) in HttpChannelChild. r=jdm 2012-03-13 11:49:01 -07:00
Justin Lebar
064e2cf3f9 Bug 729940 - Part 2: Stop using crappy hash functions in Gecko. r=bz
--HG--
extra : rebase_source : 6fa267a89878cc1a766d8618569debcea9b12e48
2012-03-12 18:53:18 -04:00
Kai Engert
33b07ad87b Bug 650355, Stop accepting MD5 as a hash algorithm in certificate signatures, r=johnath 2012-03-16 16:42:51 +01:00
Kai Engert
c31cb0817e Bug 732390, Add preference to configure acceptance of MD5 in signatures, still accept by default, NSS calls r+=rrelyea, PSM pref code r+=honzab, pref name feedback+=dveditz 2012-03-10 22:18:13 +01:00
Honza Bambas
e5c1562c42 Bug 720320 - Prevent stuck in offline mode when starting in link state managed mode w/o a link up, credits=standard8, r=biesi 2012-03-08 17:24:17 +01:00
Matt Brubeck
6e082dacc8 Back out a2d511a124d7 (bug 664163) for causing failures in test_traceable_channel_wrap.js 2012-03-06 13:28:25 -08:00
Derrick Rice
89160245ce Bug 732363 - Avoid oranges in test_net_addr.js by retaining references to the transport and output stream. r=jdm 2012-03-06 05:02:00 -05:00
Gervase Markham
6134500365 Bug 712640 - Split PSL into "registry" and "owner-requested" sections. r=pkasting. 2012-03-06 11:49:00 +00:00
Jason Duell
cc157568b6 bug 664163 - Fix Get(Local|Remote)(Address|Port) in HttpChannelChild. r=jdm 2012-03-05 23:11:19 -08:00
Jason Duell
08fa085cc3 Backed out changeset 84a2ed6120c3: wrong bug name in comment msg 2012-03-05 23:10:19 -08:00
Jason Duell
6c977731d8 Bug 648878. e10s: fix Get(Local|Remote)(Address|Port) in HttpChannelChild. r=jdm 2012-03-05 23:06:09 -08:00
Ed Morley
e63b667897 Backout afeafc02c1de, dfae37833c9b & f9f51c726fa7 (bug 729940 parts 1-3) for talos regressions 2012-03-05 15:22:28 +00:00
Nicholas Nethercote
78363fbd82 Bug 682431 (part 2) - Add memory reporters for URIs and Links. r=biesi,bz,jlebar.
--HG--
extra : rebase_source : db4f094a7d334914b986bb66f5bf1089aafda561
2012-02-19 19:51:48 -08:00
Justin Lebar
c07407a766 Bug 729940 - Part 3: Stop using crappy hash functions in Gecko. r=bz 2012-03-04 15:58:06 -05:00
Justin Lebar
2449f55f11 Back out bug 729940 (a108aee:d75775d) due to 32-bit red. 2012-03-04 14:20:34 -05:00
Justin Lebar
65b70fabf4 Bug 729940 - Part 3: Stop using crappy hash functions in Gecko. r=bz 2012-03-04 13:49:42 -05:00
Derrick Rice
ef2394dd2f Bug 720846 Scriptable PRNetAddr and scriptable access to Self/Peer address in SocketTransport
Bug 720846 Scriptable PRNetAddr and scriptable access to Self/Peer address in SocketTransport
2012-02-29 06:19:00 -05:00
Nick Hurley
9f8e4b6d95 Bug 730163 - Telemetry for how long we wait to acquire the cache service lock. r=michal.novotny 2012-02-28 18:40:39 -05:00
Nathan Froyd
b009ee6750 Bug 700659 - Slay nsHashSets in netwerk/protocol. r=mcmanus 2012-02-27 11:20:29 -05:00
Ed Morley
2d6b93358f Backout 6d239fd74f71 (bug 720846) for Windows build failures 2012-02-28 16:00:18 +00:00
Derrick Rice
4c7b066287 Bug 720846 Scriptable PRNetAddr and scriptable access to Self/Peer address in SocketTransport. r=biesi sr=bz 2012-02-28 05:34:00 -05:00
Patrick McManus
31663dd281 bug 729736 - runtime experiment with different spdy ping thresholds r=honzab 2012-02-27 10:32:09 -05:00
Nathan Froyd
23d15d13d7 Bug 700659 - Slay nsHashSets in netwerk. r=jduell 2011-11-08 15:22:15 -05:00
Geoff Lankow
23d7faa012 Backed out changeset 7dce5c5c9654 (bug 729736) 2012-02-26 13:50:37 +13:00
Geoff Lankow
57f674e087 Backed out changeset f65247c7647a (bug 729133) 2012-02-26 13:50:34 +13:00
Patrick McManus
acb7dee365 bug 729133 speculative connections do full ssl and happen before cache lookup 2012-02-25 17:07:52 -05:00
Patrick McManus
97eb17b2fa bug 729736 - runtime experiment with different spdy ping thresholds r=honzab 2012-02-25 17:07:51 -05:00
Patrick McManus
6befe68970 bug 728113 spdy ping to keepalive nat timeouts 2/2 spdy ping r=honzab 2012-02-23 20:58:43 -05:00
Patrick McManus
2ca5173015 bug 728113 - spdy ping to keepalive nat timeouts 1/2 tick infrastructure r=honzab 2012-02-23 20:56:57 -05:00
Jim Mathies
367e6edfa7 Bug 699247 - Never call nsNotifyAddrListener's CheckAdaptersAddresses on the main thread and warn if somebody does. r=m_kato 2012-02-23 08:53:58 -06:00