Commit Graph
187 Commits
Author SHA1 Message Date
Dragana Damjanovic c381c3ae3f Bug 1397686 - The streams that cannot do 0RTT data need to be put in list and added to mReadyForWrite when 0RTT is done. r=hurley 2017-09-22 09:09:57 +02:00
Nicholas Hurley cc62a74182 Bug 1397621 - Ensure we use the proper default port for origin matching with h2 pushes. r=mcmanus
MozReview-Commit-ID: AunviQkOjJO
2017-09-18 16:09:57 -07:00
Kershaw Chang 974c02c510 Bug 1377208 - Move background h2 stream into background group. r=hurley 2017-08-30 02:19:00 -04:00
Kershaw Chang 97a92f46cb Bug 1393736 - Include urgent start group for counting prioritySize. r=hurley 2017-08-27 23:11:00 -04:00
Nicholas Nethercote b7346a7502 Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm.
These are all easy cases where an nsXPIDLCString local variable is set via
getter_Copies() and then is only used in ways that nsCStrings can also be used
(i.e. no null checks or implicit conversions to |char*|).

In every case the patch trivially replaces the nsXPIDLCString with an
nsCString. (Also, there are a couple of unused nsXPIDLCString variables that
the patch simply removes.)
2017-08-16 13:58:35 +10:00
Nicholas Hurley 0a9fc6fd21 Bug 1381016 - Ensure we process FIN flags on all-padding final frames. r=swu
MozReview-Commit-ID: JuSGsYsmv4n
2017-08-01 15:24:44 -07:00
Nicholas Hurley 64a5cf8c92 Bug 1367551 - Cancel pushes when we already have the item in cache. r=mayhemer,mcmanus
MozReview-Commit-ID: 24N0Jm85wcC
2017-06-28 10:34:55 -07:00
Patrick McManus f75e6f88c2 Bug 772589 - Implement the secureConnectionStart property for the PerformanceTiming interface r=bkelly,dragana,francois,Honza
Implements PerformanceTiming, nsITimedChannel, and devtools 'tls setup'

Also captures telemetry on this as we do for all other attributes of timedChannel

Also propogates some null transaction timings onto first real
transaction of a connection

MozReview-Commit-ID: 47TQJYVHnKC
2017-07-10 15:01:35 -04:00
Sylvestre Ledru 9d4a84d778 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Nicholas Hurley 9db1af7b27 Bug 1368080 - Only remove pushed streams from cache when canceling the stream if the ids match. r=mcmanus
MozReview-Commit-ID: 5y0Aj6Bgk9u
2017-06-28 10:29:34 -07:00
Nicholas Hurley 35ec95842e Bug 1368080 - Use REFUSED_STREAM instead of INTERNAL_ERROR on duplicate push key. r=mcmanus
MozReview-Commit-ID: BEUo6YpcyZj
2017-06-28 10:28:54 -07:00
Bill McCloskey ce42826bdf Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book 238bf154d5 Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
Bill McCloskey 67e8af4720 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book bbe9441993 Backed out changeset 9846de3bd954 (bug 1372405) 2017-06-20 08:27:02 +02:00
Bill McCloskey f69608368b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Liang-Heng Chen 4cb0bfe784 Bug 1341266 - create http/2 stream for urgent-start; r=mcmanus
MozReview-Commit-ID: GIZuAmigK9n
2017-05-19 00:50:15 +08:00
Honza Bambas 0d39f05099 Bug 1365307 - Throttling of HTTP transactions. r=mcmanus 2017-06-01 12:16:00 -04:00
Shih-Chiang Chien c4eb7112a1 Bug 1015466 - Part 0, fix warning/error covered by unified build. r=mayhemer
MozReview-Commit-ID: KUHl1ZBuddC
2017-01-16 18:20:42 +08:00
Honza Bambas 77023ca826 Bug 1365306 - Remove net::ThrottlingService, don't suspend/resume download channels on page load. r=hurley 2017-05-18 14:09:00 -04:00
Patrick McManus d4b0d7869e Bug 1362388 - Remove nsAHttpTransaction::Available as footgun r=nwgh
nsAHttpTransaction::Available() obtained a bytecount from the abstract
transaction's input stream. If that stream was derived from a file://
it would create janky IO - so remove the interface.

Http2Push maintains a non-inherited interface which is used to check
the number of bytes it has internally buffered in memory.

MozReview-Commit-ID: IQHt8yGsqDE
2017-05-05 18:12:36 -04:00
Nicholas Hurley f0c1ac3450 Bug 1360574 - Detect & handle connection auth at the http/2 layer. r=mcmanus
This is also the non-broken way to fix bug 1346392. Instead of waiting
until the auth handler gets its hands on things, we break layering a bit
and inspect the response headers as soon as we decompress them to see if
there's any connection-oriented auth being requested. If there is, we
treat the situation as if we got a RST_STREAM or GOAWAY with
HTTP_1_1_REQUIRED.

We were able to re-purpose the NS_ERROR_ABORT code path that was
previously used with an inappropriate HTTP status code when talking to
an HTTPS proxy over http/2, as that usage was removed a while back from
the stream, though we still had the (dead) code in the session to handle
the stream giving us that return value. The error code was changed to
NS_ERROR_NET_RESET, however, to give a better description of what's
going on.

MozReview-Commit-ID: DLjOIIiXGrV
2017-05-11 14:42:05 -07:00
Wes Kocher bfcdda8f89 Backed out 2 changesets (bug 1362388) for android build bustage in nsHttpChannel.cpp a=backout
Backed out changeset f5b4fbe31c01 (bug 1362388)
Backed out changeset 446ecc3f5715 (bug 1362388)

MozReview-Commit-ID: DI01cDPrgM7
2017-05-12 13:58:28 -07:00
Patrick McManus 308f0866dd Bug 1362388 - Remove nsAHttpTransaction::Available as footgun r=nwgh
nsAHttpTransaction::Available() obtained a bytecount from the abstract
transaction's input stream. If that stream was derived from a file://
it would create janky IO - so remove the interface.

Http2Push maintains a non-inherited interface which is used to check
the number of bytes it has internally buffered in memory.

MozReview-Commit-ID: IQHt8yGsqDE
2017-05-05 18:12:36 -04:00
Sebastian Hengst cbb6979747 Backed out changeset fef09999e003 (bug 1362388) 2017-05-11 18:00:09 +02:00
Patrick McManus e540ed2f17 Bug 1362388 - Remove nsAHttpTransaction::Available as footgun r=nwgh
nsAHttpTransaction::Available() obtained a bytecount from the abstract
transaction's input stream. If that stream was derived from a file://
it would create janky IO - so remove the interface.

Http2Push maintains a non-inherited interface which is used to check
the number of bytes it has internally buffered in memory.

MozReview-Commit-ID: IQHt8yGsqDE
2017-05-05 18:12:36 -04:00
27cc5be981 Bug 136178 - Keep list of weakPtrs instead of streamIds of streams started during 0rtt. r=mcmanus 2017-05-09 11:37:45 +02:00
Dragana Damjanovic d3760fd8d7 Bug 1360570 - Make sure to write as much data as possible during FastOpen. r=mcmanus 2017-05-04 12:15:23 +02:00
Dragana Damjanovic 6939d5a870 Bug 1352274 - Add response header indicator for TCP FastOpen suceeded. r=mcmanus 2017-05-04 12:14:54 +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 1be5ff0d1e Bug 1356611 - per connection cache of JoinConnecton() r=nwgh
MozReview-Commit-ID: 6s0x9OWhhN1
2017-04-14 17:24:53 -04:00
Wes Kocher f54d557254 Backed out changeset b29865f8d36b (bug 1356611) for frequent windows xpcshell failures a=backout 2017-04-15 00:32:29 -07:00
Patrick McManus ae4a515496 Bug 1356611 - per connection cache of JoinConnecton() r=nwgh
MozReview-Commit-ID: 6s0x9OWhhN1
2017-04-14 17:24:53 -04:00
Honza Bambas 7ce0465701 Bug 1348061 - When an HTTP channel is throttled, stop reading from the socket when using HTTP/1. r=mcmanus 2017-04-13 05:26:00 -04:00
Patrick McManus 144a276c30 Bug 1355277 - change h2 origin frame codepoint to 0xc r=nwgh
MozReview-Commit-ID: GPEEmWQOxQ4
2017-04-10 21:47:07 -04:00
Dragana Damjanovic 4516613653 Bug 1354233 - Add stream to m0RTTStreams after streamId is set. r=mcmanus 2017-04-07 17:28:21 +02:00
Patrick McManus fe537eeebe Bug 1353497 - h2 pushes against origin set need implicit SNI r=nwgh 2017-04-04 14:51:32 -04:00
Patrick McManus 9f69c57165 Bug 1337791 - Part 2: http/2 origin frame extension. r=nwgh 2017-04-03 17:23:55 -04:00
fde23a3a92 Bug 1351392 - Fix NS_STATUS_TLS_HANDSHAKE_STARTING/ENDED transport status events for http2 and ftp. r=mcmanus 2017-03-28 10:36:00 +08:00
Patrick McManus 367b7af3a7 Bug 1350719 injected http response header 0rtt r=dragana 2017-03-26 14:28:20 -04:00
Nicholas Hurley b7b6cea746 Bug 1349246 - fix stream target for early transport status events. r=mcmanus
MozReview-Commit-ID: 9IGDNbNH0L8
2017-03-16 08:45:42 -07:00
Nicholas Hurley 9af18434c9 Bug 1343505. r=mcmanus
MozReview-Commit-ID: 7OPJQfzW4FU
2017-03-20 18:01:31 -04:00
Patrick McManus 92b8d18e32 Bug 1345240 - Trigger Reads After FlushWrite with no new writable streams in h2 r=hurley 2017-03-07 15:56:41 -05:00
Wei-Cheng Pan 9f134bdbf1 Bug 1310127 - Part 3: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus
Add assertions.

MozReview-Commit-ID: DPvgKzVr3ip
2017-01-12 17:48:45 +08: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
Patrick McManus 462f1b3fe7 Bug 1322373 - TLS 1.3 early-data for HTTP/2. r=dragana,mcmanus 2017-02-21 15:19:46 -05:00
Tom Tromey a4b717ab39 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00