Comments (25)
It's also interesting that the Python docs regarding PYTHONUNBUFFERED
say
Changed in version 3.7: The text layer of the stdout and stderr streams now is unbuffered.
Aren't we using "the text layer"?
from mitmproxy.
It behaves the same with the this ChatGTP Python parent process (just to rule out funny Node.js things):
import subprocess
def run_command(command):
try:
process = subprocess.Popen(
command,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
shell=True,
env=dict(PYTHONUNBUFFERED="1"),
)
while True:
stdout_line = process.stdout.readline().decode().strip()
if stdout_line:
print("stdout:", stdout_line)
# Check if both pipes are closed and process has terminated
if not stdout_line and process.poll() is not None:
break
except Exception as e:
print("Error:", e)
command = "/home/alex/Downloads/mitmproxy-10.2.4-linux-x86_64/mitmdump"
# command = "/home/alex/Downloads/mitmproxy-9.0.1-linux/mitmdump"
# command = "/home/alex/Downloads/mitmproxy-8.1.1-linux/mitmdump"
# command = "/home/alex/Downloads/mitmproxy-7.0.4-linux/mitmdump"
# command = "/home/alex/Downloads/mitmproxy-6.0.2-linux/mitmdump"
# command = "/home/alex/forks/mitmproxy/venv/bin/mitmdump"
run_command(command)
from mitmproxy.
Related Issues (20)
- test_load_script is language dependent HOT 1
- Content Missing when getting a large file(>1mb) HOT 1
- Cannot resize panels on Safari HOT 2
- Expired Credentials (mitmproxy-ca-cert.pem) HOT 2
- Failed to proxy HTTPS request to unicode domains
- Getting deprecation warning HOT 5
- Running mitmproxy's reverse-proxy mode locally HOT 3
- Nuke `dns_spoofing.py` addon and fix docs
- Add `dns_server` option. HOT 4
- Internet not working without mitmproxy enabled
- won't log localhost traffic on windows HOT 10
- Random SIGPIPE error when writing to a closed socket on a surge of requests HOT 8
- Async `client_connected` hook is broken in 10.2.4 HOT 9
- Update aioquic dependency to >= 1.0.0, < 2.0.0
- Breaking change in addon API inherited from (`cryptography`?) HOT 3
- Fixing AMF parsing HOT 5
- Questions about Copilot + Open Source Software Hierarchy HOT 1
- Standalone Binaries: linux-arm64 (aarch64) HOT 8
- Can't handle a connection without server or with timeout HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mitmproxy.