Commit Graph
193 Commits
Author SHA1 Message Date
Dragana Damjanovic 39f6f3c1cd Bug 1236277 - Retry all connections not just the reused one. r=mcmanus 2016-01-11 05:20:00 +01:00
Chris Peterson dab3fbc2f4 Bug 1235298 - Annotate intentional switch fallthroughs to suppress -Wimplicit-fallthrough warnings in netwerk/. r=mcmanus 2015-11-22 21:58:33 -08:00
Nathan Froyd 638feef71b Bug 1219910 - make gSocketThread a relaxed atomic variable; r=mcmanus
Many places that (re-)declared gSocketThread already included
nsSocketTransportService2.h; we can delete the declaration for those
places.  For all the other places, we need to include
nsSocketTransportService2.h.
2015-11-06 12:00:37 -05:00
Julian Seward b7f253e4ed Bug 1218506 - Uninitialised value use in nsHttpTransaction::OnTransportStatus. r=mcmanus. 2015-11-03 15:03:16 +01:00
Nate Hughes 26695fef92 Bug 1154309 - Add New Resource Timing Fields r=bz,hurley 2015-07-24 08:49:25 -07:00
Nathan Froyd 4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Sajal Kayan 9118f9390b Bug 1211168 - Fix resource timing domainLookupStart by setting the timestamp only once. r=mcmanus 2015-10-04 18:43:15 +07:00
Patrick McManus 707422c064 bug 1206771 - fix reentrantFlag compiler warning on >= beta r=jduell 2015-09-21 13:22:23 -04:00
Patrick McManus e2f929f7a8 bug 1187239 - ontransportstatus SENDING_TO should not use request stream re-entrantly r=hurley r=bz 2015-09-15 18:12:37 -04:00
Patrick McManus 13da862969 bug 1204614 - use h2 per stream flow control to deal with suspended channels r=hurley 2015-09-11 15:53:27 -04:00
Patrick McManus 0cc1c3d997 bug 1196882 - dont enforce h1 framing on non 2xx r=bagder 2015-08-28 10:57:16 -04:00
Nicholas Hurley bb76d521d7 Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
Jessica Jong 0fdefc07fa Bug 1167132 - Part 13: [NetworkManager] Move network information into a separate interface (Necko/NetStats). r=ethan 2015-07-29 02:14:00 -04:00
Valentin Gosu 2b779bea47 Bug 1153929 - Add diagnostic asserts to check vtable is still present for mPipeOut r=mcmanus 2015-07-17 14:15:56 +02:00
Birunthan Mohanathas a29151dc87 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Patrick McManus 57091fde66 bug 1179560 - some 421 retries dont work r=hurley 2015-07-02 10:34:01 -04:00
Emanuel Hoogeveen b30abdc582 Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Honza Bambas 1dc83b6242 Bug 1170534 - Remove Visual Event Tracer. r=dougt 2015-06-02 11:44:00 -04:00
Valentin Gosu f9f01c395a Bug 1153929 - Add assertions and null checks to fix windows crash in nsHttpTransaction r=mcmanus 2015-05-08 03:54:06 +03:00
Eric Rahm b676a83446 Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 12:52:44 -07:00
Wes Kocher ce92b3fcd9 Backed out 2 changesets (bug 1162336) for breaking at least windows builds
Backed out changeset 8952a7fa4050 (bug 1162336)
Backed out changeset 0170a6c2a5be (bug 1162336)
2015-05-07 11:13:24 -07:00
Patrick McManus 0d2c0e891e bug 1153212 - 2/2 Necko explicitly track origin vs routed host and give psm only origin r=dkeeler r=hurley IGNORE IDL
Allow necko to simultaneously track the dual concept of routed host
and origin (authenticated host). The origin is given to the socket
provider and the routed host is inserted at DNS lookup time as if it
were a SRV or CNAME.
2015-04-09 11:31:59 -04:00
Eric Rahm bd957615ed Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 10:35:28 -07:00
Patrick McManus 0b0c4899cb bug 1157280 - dont getSockName from main thread r=hurley 2015-04-29 18:39:06 -04:00
Patrick McManus 13af726282 Bug 1154061 - clear cached alt svc mappings on a variety of state changes r=hurley
an alt-svc map is just an optimization which can get out of phase like
any other piece of state.. therefore it makes sense to
drop them when a user presses some kind of "serenity now" button such
as force-reload, clear cache, etc..
2015-04-10 16:13:30 -04:00
Ryan VanderMeulen 838f96487a Backed out changeset e713ce8013eb (bug 1127618) for suspicion of causing semi-frequent B2G crashes.
CLOSED TREE
2015-04-09 20:05:49 -04:00
Nicholas Hurley 846155b38d Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj 2015-04-08 14:42:00 +02:00
Patrick McManus 93569040bc bug 1148237 restart verifier null pattern r=honzab 2015-03-30 15:56:49 -04:00
Valentin Gosu 8acfc35d70 Bug 1123920 - requestStart timestamp is before connectEnd when using persistent connections r=mcmanus 2015-02-25 20:23:35 +02:00
Valentin Gosu 7f8de9c12e Bug 1132572 - Fix data race for nsHttpTransaction's timing info r=mcmanus 2015-02-25 20:23:23 +02:00
Daniel Stenberg 0c8aa78f3e Bug 237623 - introduce "soft" checks for HTTP framing errors, r=mcmanus 2015-02-25 01:16:00 +01:00
Patrick McManus 87e2e25aaf bug 1133177 - https tunnel of h1 without pconn inside h2 session stall r=hurley 2015-02-19 13:50:15 -05:00
Patrick McManus 2c65815978 bug 1133177 - network logging and cleanups (part 1) r=hurley 2015-02-19 12:21:03 -05:00
Patrick McManus df5eb2cc33 bug 1133156 backout 7abb1cb9739e (bug 237623) for regression r=backout 2015-02-13 22:57:03 -05:00
Patrick McManus bba22aa2dc bug 1132212 - nshttptransction.cpp dont play with data race fire r=sworkman 2015-02-12 15:00:18 -05:00
Daniel Stenberg 762213314d Bug 237623 - Introduce "soft" checks for HTTP framing errors. r=mcmanus 2015-02-11 05:17:00 -05:00
Ryan VanderMeulen 3322287d49 Merge inbound to m-c. a=merge
CLOSED TREE
2015-02-10 16:03:15 -05:00
Patrick McManus 8a829824a9 bug 1130874 - update h2 alternate service extension to draft-06 r=hurley 2015-02-06 17:45:05 -05:00
Ethan Tseng a84f1903a5 Bug 1070944 - Part 2: Implementation of saving statistics. r=albert 2015-01-27 17:15:44 +08:00
Patrick McManus c870cb3fa4 bug 1116867 - make nsIProgressEventSink and nsITransportEventSink safely scriptable r=mayhemer r=bz
These scriptable interfaces use uint_64 arguments with sentinel values
of UINT64_MAX. However, UINT64_MAX exceeds MAX_SAFE_INTEGER and cannot
be gatewayed to/from javascript - so they cannot be used
correctly. Change them to use signed 64 bit numbers and -1 as the
sentinnel. C++ implementations ought to be enough to audit as the
special value could never be used correctly in JS anyhow - also
audited OnProgressChange() uses for downstream use of this data.
---
 dom/base/nsXMLHttpRequest.cpp                      | 19 +++++++----
 dom/base/nsXMLHttpRequest.h                        | 10 +++---
 dom/plugins/base/nsPluginStreamListenerPeer.cpp    |  4 +--
 .../webbrowserpersist/nsWebBrowserPersist.cpp      | 14 ++++----
 image/src/imgLoader.cpp                            |  4 +--
 modules/libjar/nsJARChannel.cpp                    |  3 +-
 netwerk/base/public/nsIProgressEventSink.idl       |  8 ++---
 netwerk/base/public/nsITransport.idl               |  8 ++---
 netwerk/base/public/nsNetUtil.h                    | 24 ++++++++++++++
 netwerk/base/src/Dashboard.cpp                     |  2 +-
 netwerk/base/src/nsBaseChannel.cpp                 | 12 +++----
 netwerk/base/src/nsIncrementalDownload.cpp         |  4 +--
 netwerk/base/src/nsSocketTransport2.cpp            |  5 +--
 netwerk/base/src/nsStreamTransportService.cpp      | 38 +++++++++++++---------
 netwerk/base/src/nsTransportUtils.cpp              | 12 +++----
 netwerk/protocol/file/nsFileChannel.cpp            |  8 +++--
 netwerk/protocol/ftp/nsFtpConnectionThread.cpp     |  4 +--
 netwerk/protocol/http/Http2Push.cpp                |  2 +-
 netwerk/protocol/http/Http2Session.cpp             |  2 +-
 netwerk/protocol/http/HttpChannelChild.cpp         | 31 +++++++++---------
 netwerk/protocol/http/HttpChannelChild.h           |  6 ++--
 netwerk/protocol/http/HttpChannelParent.cpp        |  4 +--
 netwerk/protocol/http/HttpChannelParent.h          |  4 +--
 netwerk/protocol/http/NullHttpTransaction.cpp      |  2 +-
 netwerk/protocol/http/PHttpChannel.ipdl            |  2 +-
 netwerk/protocol/http/SpdyPush31.cpp               |  2 +-
 netwerk/protocol/http/SpdySession31.cpp            |  2 +-
 netwerk/protocol/http/TunnelUtils.cpp              |  2 +-
 netwerk/protocol/http/nsAHttpTransaction.h         |  4 +--
 netwerk/protocol/http/nsHttpChannel.cpp            | 30 +++++++++++------
 netwerk/protocol/http/nsHttpConnection.cpp         |  4 +--
 netwerk/protocol/http/nsHttpConnectionMgr.cpp      |  4 +--
 netwerk/protocol/http/nsHttpPipeline.cpp           |  4 +--
 netwerk/protocol/http/nsHttpPipeline.h             |  6 ++--
 netwerk/protocol/http/nsHttpResponseHead.cpp       |  2 +-
 netwerk/protocol/http/nsHttpResponseHead.h         |  2 +-
 netwerk/protocol/http/nsHttpTransaction.cpp        | 32 +++++++++---------
 netwerk/protocol/http/nsHttpTransaction.h          |  2 +-
 netwerk/protocol/wyciwyg/WyciwygChannelChild.cpp   |  2 +-
 netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp      |  3 +-
 netwerk/test/TestIncrementalDownload.cpp           |  7 ++--
 uriloader/base/nsDocLoader.cpp                     | 14 ++++----
 42 files changed, 203 insertions(+), 151 deletions(-)
2015-01-08 14:48:52 -05:00
Patrick McManus bc5d494184 bug 1110707 - dont assume seekable stream on sending_to http events r=valentin 2015-01-05 12:08:21 -05:00
Patrick McManus ad2b489529 bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley 2014-12-06 14:26:50 -05:00
Nicholas Hurley 14b47a8942 Bug 1091263 - HTTP_1_1_REQUIRED support. r=mcmanus 2014-11-06 09:26:00 -05:00
Patrick McManus 3242a33df4 bug 1088850 - disable http/1 framing enforcement from bug 237623 r=bagder 2014-10-24 16:19:40 -04:00
Patrick McManus 45b91c0db1 bug 1024730 - nsIHttpPushListener r=hurley
co-author: ben brittain <[email protected]>
2014-10-21 14:35:41 -04:00
Patrick McManus e95970b3cc Bug 1082261 - http 421 retry r=hurley 2014-10-13 20:51:50 -04:00
Carsten "Tomcat" Book c81552243d Backed out changeset d6c66b0eeba9 (bug 1082261) for web-4 test failures 2014-10-23 14:52:46 +02:00
Patrick McManus 8e05eb3d25 bug 1082261 - http 421 retry r=hurley 2014-10-13 20:51:50 -04:00
Patrick McManus 30e70bb8f9 bug 1003448 - HTTP/2 Alternate Service and Opportunistic Security [2/2 necko] r=hurley 2014-08-21 10:50:17 -04:00
Patrick McManus 795cbd1326 bug 1072860 - modernize ref counting and thread asserts for nshttptransaction r=valentin 2014-09-23 19:18:47 -04:00