Commit Graph

905 Commits

Author SHA1 Message Date
Patrick McManus
2c1b0520f1 bug 671591 - restart partial http transaction (in progress) r=honzab 2012-03-22 19:39:31 -04:00
Patrick McManus
b42fe35654 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
f04f8c8cf1 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
6642e5f564 bug 665885 respect keepalive: "max=" attribute r=honzab 2012-03-22 19:39:31 -04:00
Patrick McManus
665466cf6f bug 737155 - httpconnectionmgr::processPendingQ allow more than 1 with pipeline r=honzab 2012-03-22 19:39:31 -04:00
Patrick McManus
dd00f9250a bug 599164 pipeline with type and state r=honzab 2012-03-22 19:39:31 -04:00
Patrick McManus
69d6b34474 bug 597684 Implement HTTP Assoc-req and Banned Pipelines on nsHttpConnectionInfo r=honzab 2012-03-22 19:39:31 -04:00
Patrick McManus
2f6e970bde bug 447866 http pipelining is bursty r=honzab
--HG--
extra : rebase_source : 87370228074eaff2615b8dcef9b3c0c9b919b3c3
2012-03-22 19:39:31 -04:00
Patrick McManus
18371ac44a 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
fc7977fd47 Bug 722033 - Invalidate cache entry in nsHttpChannel::DoInvalidateCacheEntry() asynchronously 2012-03-22 23:54:20 +01:00
Michal Novotny
351c4791da Bug 722033 - Use asyncOpenCacheEntry() in nsHttpChannel::OpenOfflineCacheEntryForWriting() 2012-03-22 23:53:55 +01:00
Michal Novotny
df4890a620 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
f2d3f89eb7 Bug 737417 part 1 - Split charset source constants out of nsIParser.h. r=smaug. 2012-03-22 16:42:42 +02:00
julian.reschke@gmx.de
0b667bf265 Bug 714302: add suport for HTTP status code 308 r=mcmanus
--HG--
extra : rebase_source : 2e4a46ac5ebe89a36fb4b12b1985d07d674db5e8
2012-03-21 16:13:42 -04:00
Chris Jones
84d246dca1 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
2a245bc789 Backed out changeset 5aaec7f808b6 2012-03-15 20:56:23 -07:00
Jason Duell
6e4a5e4792 Backed out changeset 5aaec7f808b6 2012-03-15 20:55:44 -07:00
John Daggett
e1a14d0e6a Bug 512566. Changes based on review comments. r=bz,jfkthame 2012-03-16 12:31:01 +09:00
John Daggett
f77f86991d Bug 512566. Load font data url's synchronously, netwerk/style changes. r=bz 2012-03-16 12:31:01 +09:00
Jason Duell
e683c892ab Bug 664163: I will back this out when xpcshell test_traceable.js fails eventually. r=jduell 2012-03-15 18:54:58 -07:00
Jason Duell
25bb7c605c Backed out changeset c9265ada6f40 2012-03-15 15:05:22 -07:00
Jason Duell
1427947aa0 Bug 648878 - I will backout: investigating inbound-only failure r=jduell 2012-03-15 13:00:20 -07:00
Patrick McManus
3060ca04b8 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
03c791f19f Back out 9899522b6ad9 (bug 664163) 2012-03-13 22:11:55 -07:00
Jason Duell
293e6966d2 Bug 664163: Yes this will get backed out: see bug. r=jdm 2012-03-13 18:46:30 -07:00
Jason Duell
1fc96138d1 Backed out changeset fd30aea30b03 2012-03-13 15:12:46 -07:00
Jason Duell
3f8203f21e Backed out changeset fd30aea30b03 2012-03-13 15:10:01 -07:00
Daniel Holbert
502c256c08 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
6bbf4d063a Bug 664163 - Fix Get(Local|Remote)(Address|Port) in HttpChannelChild. r=jdm 2012-03-13 11:49:01 -07:00
Justin Lebar
0dbaf73150 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
Nathan Froyd
4cebb315f0 Bug 700659 - Slay nsHashSets in netwerk/protocol. r=mcmanus 2012-02-27 11:20:29 -05:00
Patrick McManus
0011224491 bug 729736 - runtime experiment with different spdy ping thresholds r=honzab 2012-02-27 10:32:09 -05:00
Geoff Lankow
53be83b619 Backed out changeset 7dce5c5c9654 (bug 729736) 2012-02-26 13:50:37 +13:00
Geoff Lankow
e75048d315 Backed out changeset f65247c7647a (bug 729133) 2012-02-26 13:50:34 +13:00
Patrick McManus
fe7653eb59 bug 729133 speculative connections do full ssl and happen before cache lookup 2012-02-25 17:07:52 -05:00
Patrick McManus
ed30ba1e82 bug 729736 - runtime experiment with different spdy ping thresholds r=honzab 2012-02-25 17:07:51 -05:00
Patrick McManus
3b22728106 bug 728113 spdy ping to keepalive nat timeouts 2/2 spdy ping r=honzab 2012-02-23 20:58:43 -05:00
Patrick McManus
c05ba5fb6e bug 728113 - spdy ping to keepalive nat timeouts 1/2 tick infrastructure r=honzab 2012-02-23 20:56:57 -05:00
Masatoshi Kimura
28f2776f50 Bug 699247 - Remove Win2K related code. r=jimm, sr=neil 2012-02-23 08:53:55 -06:00
Jason Duell
afcfe03dfc Bug 696085: WebSocket connection opening across page loads r=smaug 2012-02-21 14:57:10 -08:00
Dão Gottwald
897892ae75 Bug 572659 - Don't expose the Gecko patch level (13.X.Y) in the UA string, only show the major version (13.X). r=glandium,bz sr=gerv 2012-02-21 04:29:09 +01:00
Justin Dolske
dc4967a956 Backout bfc937247f3c (bug 588909), UA change breaks Google and Zimbra. 2012-02-20 16:29:38 -08:00
Justin Dolske
493d419146 Backout 0a7410527788 (bug 572659), UA change breaks Google and Zimbra. 2012-02-20 16:29:36 -08:00
Dão Gottwald
ce98a24c8c Bug 572659 - Don't expose the Gecko patch level (13.X.Y) in the UA string, only show the major version (13.X). r=glandium,bz sr=gerv 2012-02-20 15:39:33 +01:00
Ed Morley
efe21ddd01 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-02-20 12:08:28 +00:00
Patrick McManus
7f16fc513b bug 727943 spdy broke caldav (and probly webdav) methods r=honzab 2012-02-19 14:29:09 -05:00
Patrick McManus
c03621b49b bug 727855 spdy: rst streams instead of sessions on some errors r=honzab 2012-02-19 14:28:58 -05:00
Chris Jones
3b557f3661 Bug 728673: Restore call to getNumberOfCameras(). r=fabrice 2012-02-19 09:47:16 -08:00
Chris Jones
16950ada3b Bug 727950: Don't close the camera dso, some of them don't like that. r=fabrice (npotb) 2012-02-17 22:33:52 -08:00
Richard van den Berg
bb6666c881 Bug 452781 - Allow specifying wildcard that matches all simple netbiosnames in network.automatic-ntlm-auth.trusted-uris, r=honzab 2012-02-17 16:24:31 +01:00
Honza Bambas
51616d748b Bug 621446 - investigation patch 2 for crash at RecvRedirect2Verify, r=jduell 2012-02-17 16:24:30 +01:00
Dão Gottwald
794c8a0fac Bug 588909 - Replace Gecko/<date> with Gecko/<version> in UA string. r=bz sr=gerv 2012-02-17 13:21:29 +01:00
Patrick McManus
ea7056c261 bug 447866 pre patch 0 - pipeline and spdy mix r=honzab 2012-02-15 16:41:18 -05:00
Boris Zbarsky
44d27c2c9d Bug 627616. Do proxy authentication even for LOAD_ANONYMOUS loads. r=mayhemer 2011-02-01 21:36:15 -05:00
Geoff Lankow
95f0153308 Bug 718255 - Merge nsIPrefBranch2 with nsIPrefBranch - Part E, remove uses of nsIPrefBranch2 in netwerk/ ; r=bsmedberg 2012-01-17 14:48:29 +13:00
Phil Ringnalda
6ac6b8f60d Back out be556c99ef81 and 13c3c54d067b (bug 627616) for orange 2012-02-12 10:53:31 -08:00
Boris Zbarsky
8747a6be8b Bug 627616. Do proxy authentication even for LOAD_ANONYMOUS loads. r=mayhemer 2011-02-01 21:36:15 -05:00
Julian Reschke
c5add5d09a Bug 598304 - XHR rewrites non-POST methods upon 301/302 redirects. r=bz 2012-02-10 14:12:51 +01:00
Fabrice Desré
dfcf763a85 Bug 725602 - B2G UA is wrong [r=gal] 2012-02-09 14:02:46 -08:00
Patrick McManus
8084fdc8b4 bug 704227 muddle through on some minor problems with content-length r=jduell 2012-02-09 14:47:30 -05:00
Justin Lebar
cc5eeebdd5 Bug 690425 - Fix shutdown crash in HttpChannelChild. r=jdm 2012-02-08 17:46:50 -05:00
Ed Morley
ad5a8e1d06 Backout f1acc52a59da (bug 719983) & 6771bd53e267 (bug 699247) for 30% WinXp Ts regression 2012-02-08 21:04:21 +00:00
Masatoshi Kimura
88ba00973a Bug 699247 - Say goodbye to Win2k related code. r=jimm, sr=neil 2012-02-08 10:00:45 -06:00
Patrick McManus
bbe5e26063 bug 717524 - process a list of content-encoding response headers r=bz
--HG--
extra : rebase_source : 06599a663ecb6374196ca25be0ac74e68bbe78d9
2012-02-07 22:46:43 -05:00
Fabrice Desré
5560c6ed60 Bug 708484 - Add camera capture stream provider for gonk (temporary solution) - get camera working in webpages [r=bz] 2012-02-06 22:48:50 -08:00
Jeff Muizelaar
9adaa28322 Bug 235853 - Defer proxy resolution for HTTP and HTTPS PAC to avoid blocking main thread during DNS resolution. r=biesi,sworkman 2008-11-04 16:50:00 -05:00
Fabrice Desré
e5743caa69 Bug 723418 - followup [r=cjones] 2012-02-02 18:54:47 -08:00
Chris Jones
3285de0cfc Bug 723418: Don't link against HAL_getNumberOfCameras because we don't have a camera library on the emulator. r=gal 2012-02-02 00:33:06 -08:00
Matt Brubeck
7e74c1f71e Merge mozilla-central and mozilla-inbound 2012-02-01 17:09:34 -08:00
Ed Morley
348060a7c3 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-02-01 10:55:34 +00:00
Mark Finkle
11dd9028dc Bug 671634 - Fennec UA changes. Useragent should be different between phones and tablets. r=me sr=bz a=gerv
Please read http://groups.google.com/group/mozilla.dev.platform/msg/8133920a2ccf4d5b for the details.

Also see https://wiki.mozilla.org/Fennec/User_Agent for Gerv's accepted proposal.
2012-01-31 20:04:23 -08:00
Fabrice Desré
020dae920a Bug 708484 - Add camera capture stream provider for gonk (temporary solution) - Part 1 : backend [r=cjones] 2012-01-31 16:29:17 -08:00
Michal Novotny
5f0cb87300 Bug 649778 - document.write may cause a document to be written to disk cache even when the page has Cache-Control: no-store 2012-01-30 18:03:52 +01:00
Patrick McManus
b67c1b14d9 bug 708415 spdy code review of nshttp* r=honzab 2012-01-26 00:15:26 -05:00
Patrick McManus
f9f63d758e bug 708415 spdy make stream frame writes to session atomic r=honzab 2012-01-26 00:15:26 -05:00
Patrick McManus
20e2e8cff8 bug 708415 spdysession review comments r=honzab 2012-01-26 00:15:26 -05:00
Patrick McManus
e773c12a01 bug 708415 - spdystream review comments r=honzab 2012-01-26 00:15:26 -05:00
Patrick McManus
75142efc31 bug 718206 fix spdy nsitransport event generation r=honzab 2012-01-25 15:21:13 -05:00
Jason Duell
91714b61c8 Bug 701383: Websocket fails to delete mOutGoingMessage if closed multiple times. r=mcmanus 2012-01-31 20:41:47 -08:00
Jason Duell
4214758ad2 Bug 718557: Clean up DOM Websocket close logic. r=smaug 2012-01-31 20:41:43 -08:00
Honza Bambas
a1ab90839e Bug 717773 - Crash [@ SpdySession::LogIO] on gmail part 2 r=mcmanus 2012-01-24 20:59:48 -05:00
Jeff Muizelaar
dbe0e87287 Bug 719917. Add some more network and plugin related SAMPLE_LABELs. r=bgirard
--HG--
extra : rebase_source : d21f4ffb244ae661e1ca222c02a8fa8b40a071bd
2012-01-18 19:53:35 -05:00
Patrick McManus
7ecf47a080 bug 720150 - spdy syn_reply div by zero on valid 0 len inflate buffer r=honzab 2012-01-23 22:46:37 -05:00
Jason Duell
605add0b2c Bug 716801: Location parsing. r=bz 2012-01-20 09:33:01 -08:00
Josh Aas
e5444023d6 Bug 646512 HttpChannelParent::OnStartRequest deep-copies nsHttpHeaderArray. r=jduell 2012-01-19 14:26:43 -08:00
Jeff Muizelaar
9c9e2eed37 Bug 718440. Add more sampler labels to various places. r=bgirard
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
Matt Brubeck
2e1e2ae3c5 Back out 88733ce1bef3 (bug 718440) because of Windows build failure 2012-01-17 15:15:47 -08:00
Jeff Muizelaar
581f54f157 Bug 718440. Add more sampler labels to various places. r=bgirard
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
Patrick McManus
49d99846fc bug 718210 decompress spdy server push headers even when rst r=honzab 2012-01-14 22:46:30 -05:00
Georg Koppen
787e4ee230 Bug 696662 - HTTP Auth headers cannot be modified after http-on-modify-request. r=honzab 2012-01-12 19:07:29 -08:00
Hiroyuki Ikezoe
d12304a34a Bug 680327 - Use NS_LITERAL_CSTRING instead of nsDependentCString. r=honzab
--HG--
extra : rebase_source : ce5c1c378ba1d99d427071dd3715e53bf7f50847
2012-01-13 17:17:04 +01:00
Honza Bambas
843f7c83af Bug 621446 - Fixed red caused by changeset 63c3d103610c from bad member rename, r=bustage 2012-01-13 17:04:15 +01:00
Honza Bambas
4f17bfd967 Bug 717773 - Crash [@ SpdySession::LogIO], r=mcmanus 2012-01-13 16:36:03 +01:00
Honza Bambas
703c6a0469 Bug 621446 - investigation bug for crash at RecvRedirect2Verify, r=jduell 2012-01-13 16:36:03 +01:00
Nicholas Nethercote
3bcbda425f Bug 715770 - Remove necko buffer cache. r=biesi. 2012-01-09 19:43:52 -08:00
Nick Hurley
ee2e8f04aa bug 657076 - better error handling in FTP for e10s. r=jduell 2012-01-10 23:19:17 -08:00
Patrick McManus
8aeeee04ac bug 716871 remove nshttp::CLAMP r=jduell
--HG--
extra : rebase_source : 52fb3f75e30bb1e329c2e3cfe2ef6e758adb5b60
2012-01-10 20:07:29 -05:00
julian.reschke@gmx.de
325ef58266 Bug 716961 - clean up HTTP header field name constants in nsHttpAtomList.h r=bz
--HG--
extra : rebase_source : c4158e1795522f37aa47b946b1b7e2ee2d758a71
2012-01-10 20:06:17 -05:00
Phil Ringnalda
c6e8133d18 Back out a76df5ba3dc2 (bug 713480) for test_bug650995.js permaorange 2012-01-10 08:27:12 -08:00
Michal Novotny
b41bdd0324 Bug 713480 - Compressed entries stored as files are padded with zero bytes to the length of uncompressed size 2012-01-10 15:22:42 +01:00