Commit Graph
44 Commits
Author SHA1 Message Date
Kartikaya Gupta 14424677af Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj
We have a minimum requirement of VS 2015 for Windows builds, which supports
the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
any more, and can just use %zu and friends directly everywhere.

MozReview-Commit-ID: 6s78RvPFMzv
2017-07-26 16:03:57 -04:00
cc6c478dc2 Bug 1381005 - Add some diagnostic assertions to figure out why mEnt is null. This is only temporary. r=mcmanus 2017-07-17 23:59:29 +02:00
Nathan Froyd a3cd9ee75a Bug 1360236 - make gSocketThread an internal implementation detail of nsSocketTransportService; r=mcmanus
This change makes the code a little cleaner and reduces the number of
places we call PR_GetCurrentThread, which is important for Quantum DOM
scheduling work.

The conversion was largely automatic, via:

find netwerk/ -name \*.cpp | \
  xargs sed -i -e 's/MOZ_ASSERT(PR_GetCurrentThread() == gSocketThread[^;]*/MOZ_ASSERT(OnSocketThread(), "not on socket thread")/'

and related invocations, with a few manual tweaks at the end.
2017-04-27 14:34:42 -04:00
Patrick McManus 9f69c57165 Bug 1337791 - Part 2: http/2 origin frame extension. r=nwgh 2017-04-03 17:23:55 -04:00
Kershaw Chang 3bb26d3652 Bug 1312782 - Part 1: Implement window id to pending transactions table. r=honzab 2017-03-27 04:09:00 -04:00
Dragana Damjanovic 322ba10874 Bug 1341572 - Fix multiple HalfOpen socket for a single transaction. r=mcmanus 2017-03-17 09:00:50 +01:00
Wei-Cheng Pan f9654c1dca Bug 1310127 - Part 2: Use MOZ_MUST_USE in netwerk/protocol/http r=Cykesiopka,mcmanus
Log failures or just ignore them, no control flow change.

MozReview-Commit-ID: D748DEjl3Fv
2016-12-27 19:05:13 +08:00
Patrick McManus b282fad49d Bug 1340655 - remove h1 pipeline support r=mayhemer 2017-02-17 15:35:37 -05:00
Sebastian Hengst 0db5f85cf8 Backed out changeset 379093669b39 (bug 1340655) for warning as err.or at nsHttpConnection.cpp(875). r=backout on a CLOSED TREE 2017-03-01 20:20:57 +01:00
Patrick McManus 62881745c6 Bug 1340655 - remove h1 pipeline support r=mayhemer
HTTP/1.1 pipelines have been subsumed by the more effective mux of spdy, h2, and soon quic.

The feature was never able to overcome the limitations of HoL blocking
and TCP reset, and their impact on performance and reliability.

Fundamentally mux is the only way we should be approaching that problem.

The massive amount of code - mostly heuristics to try and deal with
the HoL problem (by classifying things onto different transactions,
timers for broken servers, etc..) has become a maintenance burden with
minimal value given the default off state of the feature.

h2 is the new (working) strategy.
2017-02-17 15:35:37 -05:00
Tom Tromey e90d95a3f9 Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj
MozReview-Commit-ID: 2E8FoiNxU8L
2016-12-14 09:32:21 -07:00
Nicholas Hurley 5bd2184bfd Bug 1248197 - Remove spdy/3.1 support. r=mcmanus
MozReview-Commit-ID: 1RgzxOY00Le
2016-07-15 15:13:49 -07:00
Patrick McManus fbf1c2ae43 Bug 865314 - allow 6 parallel connects to new https origin r=hurley 2016-03-31 16:51:03 -04:00
Dragana Damjanovic e743f08e91 Bug 1247982 - Lock request headers. r=mcmanus 2016-05-03 00:06:00 +02:00
Nicholas Nethercote 90ac4627c0 Bug 1187137 (part 4) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin. 2016-01-27 16:05:00 -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
Patrick McManus 22cea9342e bug 1215552 - nsHttpConnectionMgr::PostEvent shouldnt manually ref count r=hurley 2015-10-16 11:36:59 -04: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
Emanuel Hoogeveen b30abdc582 Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02: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
Patrick McManus df36c63e19 bug 1129571 - h2/spdy coalsescing by full DNS rrset r=hurley 2015-01-30 10:55:07 -05:00
Patrick McManus 6259a4169e bug 865314 - backout 61ee2e053920 due to crashes 1089638 r=backout 2014-12-12 11:48:02 -05:00
Patrick McManus 1d63fd3557 bug 865314 - ssl parallelism to new host should not be 1 r=hurley 2014-01-30 03:56:36 -05:00
Patrick McManus 0b1f45081b bug 1097944 - remove spdy/3 2/2 r=hurley 2014-11-17 12:35:06 -05:00
Ryan VanderMeulen 1600e81962 Backed out changeset 06acd829f970 (bug 865314) for causing new topcrashes. a=me 2014-10-27 14:26:13 -04:00
Patrick McManus aef989b7e4 bug 865314 - ssl parallelism to new host should not be 1 r=hurley 2014-01-30 03:56:36 -05:00
Patrick McManus ee175b37cc bug 865314 - backout for unused variable compiler bustage r=bustage CLOSED TREE 2014-10-24 11:52:18 -04:00
Patrick McManus 27c976115c bug 865314 - ssl parallelism to new host should not be 1 r=hurley 2014-01-30 03:56:36 -05:00
Patrick McManus 2251efde7c bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
Patrick McManus d93b7ba831 bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
Patrick McManus b35d498cab bug 912550 - remove spdy/2 r=hurley 2013-09-27 13:55:24 -04:00
Patrick McManus 735cad0706 bug 912549 - spdy/3.1 r=hurley 2013-07-26 17:22:46 -04:00
Ehsan Akhgari deb5a6a21b Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
Patrick McManus 533a3304af bug 658222 - Enable TLS False Start (PSM) r=bsmith 2013-06-28 16:58:28 -04:00
Jason Duell 1c8005d335 Bug 558623 - Split out HTTP LOG macro definition from nsHttp.h r=jdm 2013-06-22 09:01:06 -07:00
Patrick McManus 8b9ed05d20 bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00
Patrick McManus 6343782b40 bug 871289 [1 of 2] standardize netwerk/protocol/http on moz_assert r=jduell 2013-05-16 09:30:41 -04:00
Phil Ringnalda 62c848323e Back out 96a806212cac (bug 865314) for apparently causing fairly frequent failures in test_spdy.js 2013-04-24 23:45:40 -07:00
Patrick McManus 3cc9acfbb0 bug 865314 dont restrict parallel ssl handshakes with unknown spdy state r=jduell 2013-04-24 20:27:50 -04:00
Randell Jesup 3b4961b603 Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari 243c878d26 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor 8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Patrick McManus 2bcd833d2f bug 775508 http connection diagnostic half-open elapsed syn time incorrect r=honzab 2012-07-20 08:41:35 -04:00
Patrick McManus ed67dd1214 bug 770264 - http connection diagnostics r=honzab 2012-07-09 18:07:57 -04:00