Skip to content

Comments

Safeguard#1126

Merged
mhils merged 2 commits intomitmproxy:masterfrom
Kriechi:safeguard
May 18, 2016
Merged

Safeguard#1126
mhils merged 2 commits intomitmproxy:masterfrom
Kriechi:safeguard

Conversation

@Kriechi
Copy link
Member

@Kriechi Kriechi commented May 10, 2016

prevent backtrace with lost http2 connections
might fix #1084

self.set_server(address, tls, address.host)
# Establish connection is neccessary.
if not self.server_conn:
self.connect()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to fail if there is an error with the server connection. Just returning False is not an option I think.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How hard would you want it to fail? Throwing an exception?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. We should talk about this later or tomorrow, I actually disagree with all changes to http.py. 😇

@Kriechi Kriechi force-pushed the safeguard branch 2 times, most recently from 3142b6d to cb3dfdb Compare May 13, 2016 14:31
@Kriechi
Copy link
Member Author

Kriechi commented May 13, 2016

ping @mhils

# > read (100-n)% of large request
# > send large request upstream

if "Http2Layer" in [repr(l) for l in self.layers]:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rather check for Http2Exception here?

@mhils
Copy link
Member

mhils commented May 16, 2016

Other than my comment above (and the merge conflict), this looks awesome. 👍 😃

@Kriechi
Copy link
Member Author

Kriechi commented May 18, 2016

Done.

@mhils
Copy link
Member

mhils commented May 18, 2016

🎉

@mhils mhils merged commit 9a28011 into mitmproxy:master May 18, 2016
@Kriechi Kriechi deleted the safeguard branch May 19, 2016 01:29
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.

HTTP/2 does not handle killed requests

2 participants