Commit Graph

4593 Commits

Author SHA1 Message Date
Maximilian Hils
26fe7dc87d Merge pull request #1257 from tdickers/master
Make har_extractor.py output HAR 1.2 spec-compliant
2016-06-14 10:03:13 -07:00
Tai Dickerson
c2d0910e59 Make har_extractor.py output HAR 1.2 spec-compliant
HAR files were failing to load in harviewer (http://www.softwareishard.com/har/viewer/) due to:
- ISO 8601 dates for startedDateTime missing timezone (http://www.softwareishard.com/blog/har-12-spec/#pages)
-- Used UTC but could add detection of default system timezone if desired
- pages object missing pageTimings (http://www.softwareishard.com/blog/har-12-spec/#pageTimings)
-- Used {} because all child fields are optional
2016-06-14 12:47:10 -04:00
Aldo Cortesi
a63817f2b8 Merge pull request #1253 from mhils/fix-debug
Fix Debug Mode on Windows
2016-06-14 17:12:02 +12:00
Aldo Cortesi
04394ebd50 Merge pull request #1251 from cortesi/netlibrace
Roll connect handlers and thread leak detection out in more of the netlib test suite
2016-06-14 17:11:41 +12:00
Aldo Cortesi
93276d45be Merge branch 'master' into netlibrace 2016-06-14 16:29:15 +12:00
Aldo Cortesi
4c292b0197 Fix Python3 tests 2016-06-14 16:13:50 +12:00
Aldo Cortesi
d8ae2f1562 Merge pull request #1254 from mitmproxy/scriptargs
Inline Scripts: use sys.argv instead of args argument.
2016-06-14 15:25:01 +12:00
Aldo Cortesi
c2b5a13e3f Don't fail when start() is not defined 2016-06-14 14:39:07 +12:00
Aldo Cortesi
59aff68e7a Merge branch 'netlibrace' of github.com:cortesi/mitmproxy into netlibrace 2016-06-14 14:35:12 +12:00
Aldo Cortesi
50a20fefee Satisfy lint 2016-06-14 14:34:30 +12:00
Aldo Cortesi
9e63350a96 Use handlers in http2 test suite 2016-06-14 14:32:18 +12:00
Aldo Cortesi
e6fd98bb72 Start rolling out leak detection in netlib 2016-06-14 14:32:18 +12:00
Maximilian Hils
63c6660895 update examples, tests, docs 2016-06-13 18:17:09 -07:00
Maximilian Hils
804efe9d38 fix contextmanager, remove args argument to start() 2016-06-13 18:08:57 -07:00
Maximilian Hils
3c9a70b761 fix debug mode on Windows 2016-06-13 18:06:44 -07:00
Aldo Cortesi
e7b61995ad A tiny wrapper to make script invocations nicer 2016-06-14 12:34:22 +12:00
Aldo Cortesi
3c5b0491e6 Use handlers in http2 test suite 2016-06-14 12:09:13 +12:00
Aldo Cortesi
d7d532d6a6 Merge remote-tracking branch 'upstream/master' into netlibrace 2016-06-14 11:20:29 +12:00
Thomas Kriechbaumer
ccf4723505 Merge pull request #1242 from Kriechi/fix-1240
fix #1240
2016-06-12 14:17:30 +02:00
Thomas Kriechbaumer
a5aa16e03b fix #1240 2016-06-12 11:51:49 +02:00
Aldo Cortesi
a9c74bcb55 Start rolling out leak detection in netlib 2016-06-12 12:15:00 +12:00
Aldo Cortesi
e0d6434b27 Merge pull request #1247 from cortesi/appveyor
Be stricter about handling connetcts in the pathoc test suite
2016-06-12 11:35:20 +12:00
Aldo Cortesi
e58a2bf095 Merge branch 'master' into appveyor 2016-06-12 11:27:16 +12:00
Aldo Cortesi
dc545ca0f6 Make the tcp connection closer cancellable
And use this to make pathoc error handling more sophisticated
2016-06-12 11:17:05 +12:00
Aldo Cortesi
1d44030963 Merge pull request #1246 from cortesi/version
Fold mitmproxy.version and pathod.version into netlib.version
2016-06-12 10:40:10 +12:00
Aldo Cortesi
9bea616441 Be stricter about handling connetcts in the pathoc test suite
Attempt to clear a niggling Appveyor exception buggering up our CI.
2016-06-12 10:39:19 +12:00
Aldo Cortesi
728d5caa22 Fold mitmproxy.version and pathod.version into netlib.version 2016-06-12 10:29:12 +12:00
Thomas Kriechbaumer
c801f81373 Merge pull request #1243 from cortesi/debug2
debug: On SIGUSR2, we dump tracebacks for all threads to screen
2016-06-11 14:22:48 +02:00
Aldo Cortesi
e9f8eb1f6b Satisfy lint 2016-06-11 23:13:41 +12:00
Aldo Cortesi
7b86560ded debug: On SIGUSR2, we dump tracebacks for all threads to screen 2016-06-11 23:07:42 +12:00
Aldo Cortesi
8489c01ac8 Merge pull request #1241 from cortesi/debug
Debug
2016-06-11 22:22:02 +12:00
Aldo Cortesi
53b2fd545b Zap stray semicolon 2016-06-11 21:26:38 +12:00
Aldo Cortesi
5566a1f0e6 debug: num_fds is posix-only 2016-06-11 21:25:34 +12:00
Aldo Cortesi
0848d1085e debug: add OpenSSL 2016-06-11 21:06:41 +12:00
Aldo Cortesi
3f240b1875 debug: verison -> version
@resam blew our sponsorship - t-mobile is up next
2016-06-11 21:04:13 +12:00
Aldo Cortesi
09edbd9492 Improve debugging of thread and other leaks
- Add basethread.BaseThread that all threads outside of test suites should use
- Add a signal handler to mitmproxy, mitmdump and mitmweb that dumps resource
information to screen when SIGUSR1 is received.
- Improve thread naming throughout to make thread dumps understandable
2016-06-11 19:52:24 +12:00
Aldo Cortesi
5b9f07c81c debug.sysinfo: tests and coverage 2016-06-11 17:56:17 +12:00
Aldo Cortesi
e367b88195 Add a --sysinfo flag to all daemons
This dumps all the platform information and mitmproxy version data we'd
normally need to troubleshoot an issue.
2016-06-11 16:40:21 +12:00
Aldo Cortesi
4831e3e0bc Merge pull request #1238 from cortesi/toxfiddle
Distinguish between CI and interactive versions of tox
2016-06-11 16:24:12 +12:00
Aldo Cortesi
227d762cac Merge branch 'master' into toxfiddle 2016-06-11 16:08:14 +12:00
Aldo Cortesi
250b47487a tox: Pull Py3 test list out into an environment variable
Suggestion from @resam
2016-06-11 09:34:40 +12:00
Maximilian Hils
0b241a1da7 Merge remote-tracking branch 'jason/master' 2016-06-10 12:03:56 -07:00
Aldo Cortesi
3f7dc296c8 We're not using tox-travis any more - ditch it. 2016-06-10 20:05:18 +12:00
Aldo Cortesi
6da3ef48e0 Remove explicit versions in tox CI environments
Tox matches the environment prefix against its std environs, so we don't need
to be explicit with versions here.
2016-06-10 19:38:55 +12:00
Aldo Cortesi
bac3e87538 Distinguish between CI and interactive versions of tox
- This patch changes tox so that local invocation runs the tests
with paralellism, coverage disabled, and without attempting to report coverage
upstream.

- You can now run specific tests for the py27 environment:

    tox -e py27 ./path/to/my/test

We can't do this for py35 just yet, because of our junk filter, and the fact
that we specify which tests to run directly in the conf file. Once these are
cleaned up, we can extend.
2016-06-10 16:03:54 +12:00
Aldo Cortesi
11fb217191 Fix a crash when pathoc connections fail
Use the new handler to tidy this up.
2016-06-10 11:14:23 +12:00
Aldo Cortesi
120b6c0b59 Merge remote-tracking branch 'upstream/master' into pathodlog 2016-06-10 10:49:45 +12:00
Aldo Cortesi
2cf79b7912 Remove timestamps from pathoc output
Pathoc is an interactive tool, no need for a long leading timestamp. More
generally, make timestamps optional in the logging mechanism so we can
configure this with command-line flags or something down the track.
2016-06-10 10:47:28 +12:00
Jason
c33df55919 [web] update build 2016-06-09 20:39:51 +08:00
Jason
81a0c45c89 [web] header.js -> Header.js 2016-06-09 20:35:03 +08:00