Skip to content

Conversation

@masaori335
Copy link
Contributor

This is the third part of HTTP/2 backports to 8.1.x.

Backports:

#6003 - Cleanup: do not re-define _proxy_ssn variable in local
#5605 - Fix crash in MIMEScanner::append with std::string. See #5587.
#5920 - Cleanup: VIO
#5901 - Dechunk chunked contents on HttpTunnel if client protocol is HTTP/2 or HTTP/3
#5953 - Log H2 priority information
#6209 - Add 100-continue expectation support on H2 connection
#4912 - Address performance issue by removing use of read_avail
#6199 - Set END_STREAM flag when write_vio ntodo is 0
#6378 - Remove trailing white space from json formatter
#6337 - Perf: Optimize sending HTTP/2 frame
#6348 - Add virtual destructors for Http2TxFrame, Http2FrequencyCounter
#6568 - Fix PUSH_PROMISE frame payload length
#6346 - Fix heap-use-after-free on Http2Stream::destroy()
#5934 - Track scheduled events to (read|write)_vio.cont from Http2Stream
#5972 - Avoid unnecesarry copy on POST request over HTTP/2
#6404 - Signal VC_EVENT_READ_COMPLETE when ATS received END_STREAM flag
#6413 - Fix crash when H2 client does not set End-of-data bit
#6376 - Update inactive_timeout_at in Http2Stream::signal_read_event()
#6380 - Remove unnecesary HttpSM handler call with VC_EVENT_ERROR
#6409 - Another option to fix potential HTTP/2 vio stall
#6450 - Adjust consume logic in data frame read
#6470 - Remove update to unused variable

@masaori335 masaori335 added the Backport Marked for backport for an LTS patch release label Mar 31, 2020
@masaori335 masaori335 added this to the 8.1.0 milestone Mar 31, 2020
@masaori335 masaori335 requested review from bryancall and zwoop March 31, 2020 05:53
@masaori335 masaori335 self-assigned this Mar 31, 2020
@masaori335
Copy link
Contributor Author

I add 2 extra commits to pass clang-format and Debian/Ubuntu build.

  • Cleanup trailing whitespaces
  • Fix test_libhttp2 build issue of 8.1.x on Debian/Ubuntu ( 8.1.x still using TCL )

masaori335 and others added 24 commits April 1, 2020 09:57
(cherry picked from commit 0ee48a0)

Conflicts:
	proxy/http2/Http2Stream.cc
(cherry picked from commit b7b6b4b)

Conflicts:
	proxy/http2/Http2Stream.h
- No logical changes
- Remove unnecessary include headers
- Fix format
- Make const functions

(cherry picked from commit dc0fb99)

Conflicts:
	iocore/eventsystem/I_VIO.h
…r HTTP/3

(cherry picked from commit 3ac74b5)

Conflicts:
	proxy/http/HttpTransact.cc
	proxy/http2/Http2Stream.cc
	proxy/http2/Http2Stream.h
(cherry picked from commit 89cf5af)

Conflicts:
	proxy/ProxyTransaction.cc
	proxy/ProxyTransaction.h
	proxy/http/HttpSM.h
	proxy/http2/Http2Stream.cc
	proxy/http2/Http2Stream.h
(cherry picked from commit c0fe598)

Conflicts:
	tests/gold_tests/h2/gold/httpbin_0_stdout.gold
	tests/gold_tests/h2/httpbin.test.py
(cherry picked from commit 52538c4)

Conflicts:
	proxy/http2/Http2ConnectionState.cc
Prior to this change, HTTP/2 was almost 30% slower than HTTP/1.1 (over TLS) on downloading a huge file (over 1GB).

Improvements:
- Avoid unnecessary IOBufferBlock allocation for all type of frame
- Avoid unnecessary copy on sending DATA frame
- Adjust IOBufferBlock size of Http2ClientSession::write_buffer

Cleanups:
- Decouple receiving & sending HTTP/2 Frame
- Remove unnecessary SCOPED_MUTEX_LOCK

(cherry picked from commit 48bcbe6)

Conflicts:
	proxy/http2/Http2ClientSession.cc
	proxy/http2/Http2ClientSession.h
	proxy/http2/Http2ConnectionState.cc
	proxy/http2/Http2Stream.cc
(cherry picked from commit 582df40)

Conflicts:
	.gitignore
	proxy/http2/HTTP2.h
(cherry picked from commit ca67471)

Conflicts:
	proxy/http2/Http2Stream.cc
(cherry picked from commit c55001b)

Conflicts:
	proxy/http2/Http2Stream.cc
(cherry picked from commit 240bb69)

Conflicts:
	proxy/http2/Http2Stream.cc
(cherry picked from commit 87e7906)

Conflicts:
	proxy/http2/Http2Stream.cc
	proxy/http2/Http2Stream.h
(cherry picked from commit deea85a)
We don't see this issue on master, because we got rid of TCL.
@masaori335
Copy link
Contributor Author

One more commit to fix AuTest failure following @ezelkow1 's advice. This is ready now.

@zwoop zwoop merged commit 1a2924e into apache:8.1.x Apr 6, 2020
@zwoop zwoop modified the milestones: 8.1.0, Backported Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport Marked for backport for an LTS patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants