mitmproxy/test
EndUser509 35703b0b6b
HTTP/2 keepalive (#5144)
* Example addon for saving streamed data including a small bug fix to make it work.

* Revert "Example addon for saving streamed data including a small bug fix to make it work."

This reverts commit 02ab78def9a52eaca1a89d0757cd9475ce250eaa.

* Add https_ping_threshold option to enable keep-alive for HTTP/2 server connections by sending PING frames if the conection is idle longer than the threshold.

* Fixed test

* Fix test

* Adding pragma

* Moved timer logic to _http2.py

* Small code improvement

* Update mitmproxy/options.py

Co-authored-by: Maximilian Hils <github@maximilianhils.com>

* Update mitmproxy/options.py

Co-authored-by: Maximilian Hils <github@maximilianhils.com>

* Update mitmproxy/proxy/commands.py

Co-authored-by: Maximilian Hils <github@maximilianhils.com>

* Update mitmproxy/proxy/commands.py

Co-authored-by: Maximilian Hils <github@maximilianhils.com>

* Update mitmproxy/proxy/layers/http/_http2.py

Co-authored-by: Maximilian Hils <github@maximilianhils.com>

* Sending Wakup back to right client

* Update mitmproxy/proxy/server.py

Co-authored-by: Maximilian Hils <github@maximilianhils.com>

* Update mitmproxy/proxy/server.py

Co-authored-by: Maximilian Hils <github@maximilianhils.com>

* Update mitmproxy/proxy/server.py

Co-authored-by: Maximilian Hils <github@maximilianhils.com>

* Incorporated suggested changes
Fixed almost all tests

* make `Wakeup` a `CommandCompleted` event.

This allows us to use it with `reply()` in tests,
which makes sure that the correct instance is reused.
 # Please enter the commit message for your changes. Lines starting

* nits

`typing.Set` for Python 3.8 compatibility and a few minor stylistic changes.

* nits nits

Co-authored-by: Maximilian Hils <github@maximilianhils.com>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2022-04-22 13:59:55 +02:00
..
bench tests++ 2022-03-15 18:43:56 +01:00
examples tests++ 2022-03-15 18:43:56 +01:00
helper_tools Use async for tctx.cycle/tctx.invoke. 2022-02-04 17:30:20 +01:00
mitmproxy HTTP/2 keepalive (#5144) 2022-04-22 13:59:55 +02:00
release master branch -> main branch 2021-03-30 15:30:45 +02:00
__init__.py move tests into shared folder 2016-02-15 16:34:22 +01:00
conftest.py cibuild: cleanup outdated providers 2020-12-14 20:01:32 +01:00
filename_matching.py nuke legacy protocol stack 2020-12-14 22:14:43 +01:00
full_coverage_plugin.py pyupgrade --keep-runtime-typing --py38-plus 2022-03-29 15:29:37 +02:00
individual_coverage.py remove pathod and pathoc 2020-12-13 20:21:11 +01:00