aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* console: use replay count commands in statusbarAldo Cortesi2018-05-022-4/+9
| | | | | | Also add a periodic refresh every 0.5 seconds for the statusbar. This is in addition to refreshes upon event update notifications, and picks up replay status changes not linked to flow events.
* server replay: expose the replay.server.count commandAldo Cortesi2018-05-021-0/+1
|
* client replay: replaying flows in-flight should be added to count()Aldo Cortesi2018-05-022-2/+7
|
* commands: clarify command call interface, fix web app replayAldo Cortesi2018-05-028-35/+40
|
* client replay: use count command for console statusbarAldo Cortesi2018-05-011-3/+4
|
* client replay: expad and consolidate testsAldo Cortesi2018-05-014-97/+128
|
* client replay: revert our changes if replay is abortedAldo Cortesi2018-04-301-0/+2
|
* client replay: re-designAldo Cortesi2018-04-308-209/+154
| | | | | | | | | Re-design the way client replay works. Before, we would fire up a thread, replay, wait for the thread to complete, get the next flow, and repeat the procedure. Now, we have one replay thread that starts when the addon starts, which pops flows off a thread-safe queue. This is much cleaner, removes the need for busy tick, and sets the scene for optimisations like server connection reuse down the track.
* client replay: move all client replay-related code into addonAldo Cortesi2018-04-279-269/+260
|
* Merge pull request #3082 from p1uymi/patch-2Aldo Cortesi2018-04-271-3/+3
|\ | | | | Changed syntax of two options (from v2 to v3)
| * Changed syntax from v2 to v3p1uymi2018-04-261-3/+3
| | | | | | | | --client-certs = v2 syntax --> --set client_certs=value = v3 syntax --cadir = v2 syntax --> --set cadir=value = v3 syntax
* | Merge pull request #3083 from mitmproxy/requires-io-masterAldo Cortesi2018-04-271-1/+1
|\ \ | |/ |/| [requires.io] dependency update on master branch
| * [requires.io] dependency updaterequires.io2018-04-270-0/+0
| |
| * [requires.io] dependency updaterequires.io2018-04-261-1/+1
|/
* Merge pull request #3078 from kajojify/expanduserAldo Cortesi2018-04-264-5/+10
|\ | | | | Fix #3002. Auto-expanding for tilda.
| * Incompatible typesMiroslav2018-04-261-2/+2
| |
| * LintMiroslav2018-04-261-1/+0
| |
| * Fix #3002. Auto-expandingMiroslav2018-04-264-4/+10
| |
* | Merge pull request #3076 from clyfish/keepaliveAldo Cortesi2018-04-261-0/+2
|\ \ | | | | | | add SO_KEEPALIVE
| * | add SO_KEEPALIVECheng Liangyu2018-04-251-0/+2
| | |
* | | Merge pull request #3071 from cortesi/ticklessAldo Cortesi2018-04-2643-327/+348
|\ \ \ | |_|/ |/| | asyncio: shift script reloading out of the tick event
| * | test: shift test_data out of our public APIAldo Cortesi2018-04-2333-229/+216
| | |
| * | addons/script: improve relability of reload testAldo Cortesi2018-04-234-7/+13
| | | | | | | | | | | | | | | | | | The granularity of mtime is surprisingly bad. Make the tests more robust against this, and promote has_log back to a public method, now that we have a few legitimate examples.
| * | asyncio: shift script reloading out of the tick eventAldo Cortesi2018-04-2313-105/+133
| |/ | | | | | | | | | | | | The tick event is a nasty compromise, left over from when we didn't have an event loop. This is the first patch in a series that explores moving our built-in addons to managing coroutines on the eventloop directly for periodic tasks.
* | Merge pull request #3077 from mhils/pytest-fixMaximilian Hils2018-04-253-3/+3
|\ \ | |/ |/| Fix pytest invocation errors
| * fix pytest invocation errorsMaximilian Hils2018-04-253-3/+3
|/
* Merge pull request #3070 from CorTal/Fix#3066Thomas Kriechbaumer2018-04-181-1/+1
|\ | | | | Fix asyncio.call_soon -> asyncio.ensure_future
| * call_soon->ensure_futureCorTal2018-04-181-1/+1
|/
* Merge pull request #3069 from cortesi/mwebAldo Cortesi2018-04-183-29/+8
|\ | | | | A grab-bag of mitmweb-related fixes
| * mitmweb: don't blort all over my config fileAldo Cortesi2018-04-181-5/+5
| | | | | | | | | | | | | | | | Temporarily disable config saving until we can look at this more closely. Config saving should: - Only happen when explicitly requested by the user - Only save changed values
| * tcp: As of Python 3.5, EINTR is retried automatically by selectAldo Cortesi2018-04-181-10/+1
| | | | | | | | See https://www.python.org/dev/peps/pep-0475/
| * mitmweb: shift to use new run_loop wrapper on masterAldo Cortesi2018-04-181-14/+2
|/ | | | Fixes #3067
* Merge pull request #3064 from cortesi/mexitAldo Cortesi2018-04-182-24/+29
|\ | | | | asyncio: fix exit behaviour for console
| * asyncio: fix exit behavior for consoleAldo Cortesi2018-04-172-24/+29
| | | | | | | | | | | | | | | | | | - Add a master.run_loop function. This encapsulates our run behaviour so that it can be used by implementations that need to manage their own run loop (like urwid). - Shift crash exit message to the common core. I'm not convinced we really need this, but if we want it it should be centralised. - Clean up an extra exception that can be thrown by asyncio itself on "dirty" termination after a mitmproxy crash.
* | Merge pull request #3063 from cortesi/sigsAldo Cortesi2018-04-172-17/+22
|\| | | | | Ignore signal errors on windows + various fixes
| * Ignore signal errors on windows + various fixesAldo Cortesi2018-04-172-17/+22
|/ | | | | | | | - Ignore the NotImplementedError raised by add_signal_handler on Windows. - Entrypoints return an integer exit code, or None. Adjust our type annotations and code to suit. Fixes #3061
* Merge pull request #3048 from cortesi/qbenchAldo Cortesi2018-04-1719-51438/+112
|\ | | | | Improve benchmarking
| * asyncio: clarify shutdown semanticsAldo Cortesi2018-04-166-27/+29
| | | | | | | | | | This patch clarifies proxy shutdown, and specifies that the master.shutdown() method is thread-save.
| * Clean up test/helper_tools directoryAldo Cortesi2018-04-165-51323/+0
| |
| * Improve benchmarkingAldo Cortesi2018-04-169-93/+88
|/ | | | | | | | | - The benchmark addon now manages setting up and tearing down the backend and traffic processes itself. - Use wrk instead of hey. I get more consistent results with this tool, and hey shows a strange tail-latency bump that seems artificial. - Make termination behaviour simpler. The bencmark revealed a bug where .done events were not called if the proxy was shut down by an addon.
* Merge pull request #3059 from obscure76/enh/issue-3053Aldo Cortesi2018-04-1660-149/+149
|\ | | | | fix Python 3.6 variable type annotations #3053
| * fix Python 3.6 variable type annotations #3053oscure762018-04-1460-149/+149
| |
* | Merge pull request #3050 from kira0204/error-scriptAldo Cortesi2018-04-153-10/+29
|\ \ | | | | | | Handling user script's exceptions, fix #2839
| * | Handling user script exceptions, fix #2839kira02042018-04-103-10/+29
| | |
* | | Merge pull request #3057 from mitmproxy/requires-io-masterAldo Cortesi2018-04-151-2/+2
|\ \ \ | | | | | | | | [requires.io] dependency update on master branch
| * | | [requires.io] dependency updaterequires.io2018-04-141-1/+1
| | | |
| * | | [requires.io] dependency updaterequires.io2018-04-141-1/+1
| | |/ | |/|
* | | Merge pull request #3056 from cortesi/readfileAldo Cortesi2018-04-154-54/+99
|\ \ \ | |/ / |/| | readfile fixes
| * | mitmdump: also set dumper_filter to default filter on startupAldo Cortesi2018-04-141-0/+1
| | | | | | | | | | | | Fixes #3051
| * | readfile: add a readfile_filter optionAldo Cortesi2018-04-144-40/+81
| | | | | | | | | | | | | | | | | | * Add a readfile_filter option that filters flows on read. * Adjust test suite for asyncio. * Add asynctest as a dev dependency.