Skip to content

Flared 8.1.1#4

Merged
leameow merged 310 commits intoflaredfrom
isra/flared-8.1.1
Apr 27, 2023
Merged

Flared 8.1.1#4
leameow merged 310 commits intoflaredfrom
isra/flared-8.1.1

Conversation

@leameow
Copy link
Member

@leameow leameow commented Apr 27, 2023

cc @aviau

Merge latest release of mitmproxy in our fork.

This support python 3.11 and recent dependencies version.

nneonneo and others added 30 commits February 4, 2022 17:30
async_trigger -> trigger_event
invoke_addon -> invoke_addon_sync (API breakage)
async_invoke_addon -> invoke_addon
Previously, it was throwing the following error:

  File mitmproxy/addons/dumper.py, line 133, in _echo_request_line
    elif flow.client_conn.peername:
AttributeError: 'bool' object has no attribute 'peername'
This should improve behaviour, since calls to @Concurrent will now be serialized
relative to other hooks on the same flow (but will still run in parallel with
hooks on different flows). Unlike a plain async hook, @Concurrent allows blocking
sync APIs to run concurrently (e.g. requests).

This is patch 1/4 of the reply-ectomy.
In principle, a flow is killable as long as the connection handler is still
checking the error status of the flow.

This is patch 2/4 of the reply-ectomy.
This is patch 3/4 of the reply-ectomy.
The major, breaking change is that it is no longer possible to "take" a reply in
order to block the effect of a later addon hook.

This is patch 4/4 of the reply-ectomy.
We previously relied on the state of `Flow.reply` to check if a flow can be killed,
but this doesn't work anymore with `Flow.reply` being removed. Instead, we now
reintroduce the `Flow.live` attribute, which signals if we are on a live connection.
Killing still is not ideal (see comment in `Flow.killable`), but this paves the way.
This reverts commit 278611b,
which introduced a bug for the regular HTTP views,
which would initially scroll to the bottom.

fix mitmproxy#5089
this commit vendors urwid/urwid@e2423b5
so that we don't have to wait for a new release.
mhils and others added 29 commits May 12, 2022 15:06
mitmproxy#5342)

* Fix handling of multiple Cookie headers when proxying HTTP/2 to HTTP/1

fix mitmproxy#5337

* Add Tests about converts multiple Cookie headers to HTTP/1 from HTTP/2

* Adjust order

* minor code style nits

* Update CHANGELOG.md

* Update _http1.py

Co-authored-by: Maximilian Hils <github@maximilianhils.com>
…roxy#5366)

* allow sockname to specify local-addr

* set local_addr via command line

* minor fix for reconfig

* minor rewording

Co-authored-by: Maximilian Hils <github@maximilianhils.com>
…request (mitmproxy#5374)

* fix: don't generate empty chunk for head request (mitmproxy#5372)

* docs: update changlog

* chore: assert for optional self.request.
* [mitmproxy#5428] fix huge (>65kb) http2 responses corrupted

* [mitmproxy#5428] add tests for huge (>65kb) http2 responses

* add changelog for mitmproxy#5428

* style fix

Co-authored-by: dhabensky <dhabensky@yandex-team.ru>
@leameow leameow merged commit d711d69 into flared Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.