Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | fix pytest invocation errors | Maximilian Hils | 2018-04-25 | 3 | -3/+3 | |
|/ / | ||||||
* | | Ignore signal errors on windows + various fixes | Aldo Cortesi | 2018-04-17 | 1 | -4/+5 | |
| | | | | | | | | | | | | | | | | - 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 | |||||
* | | asyncio: clarify shutdown semantics | Aldo Cortesi | 2018-04-16 | 4 | -20/+13 | |
| | | | | | | | | | | This patch clarifies proxy shutdown, and specifies that the master.shutdown() method is thread-save. | |||||
* | | Clean up test/helper_tools directory | Aldo Cortesi | 2018-04-16 | 5 | -51323/+0 | |
| | | ||||||
* | | Improve benchmarking | Aldo Cortesi | 2018-04-16 | 7 | -75/+64 | |
|/ | | | | | | | | | - 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-3053 | Aldo Cortesi | 2018-04-16 | 1 | -1/+1 | |
|\ | | | | | fix Python 3.6 variable type annotations #3053 | |||||
| * | fix Python 3.6 variable type annotations #3053 | oscure76 | 2018-04-14 | 1 | -1/+1 | |
| | | ||||||
* | | Merge pull request #3050 from kira0204/error-script | Aldo Cortesi | 2018-04-15 | 2 | -7/+23 | |
|\ \ | | | | | | | Handling user script's exceptions, fix #2839 | |||||
| * | | Handling user script exceptions, fix #2839 | kira0204 | 2018-04-10 | 2 | -7/+23 | |
| |/ | ||||||
* / | readfile: add a readfile_filter option | Aldo Cortesi | 2018-04-14 | 1 | -39/+55 | |
|/ | | | | | | * Add a readfile_filter option that filters flows on read. * Adjust test suite for asyncio. * Add asynctest as a dev dependency. | |||||
* | asyncio: ditch the handler context | Aldo Cortesi | 2018-04-07 | 2 | -2/+4 | |
| | | | | | | | There are a few reasons for this. First, logs are now async, and can be called at any time. Second, the event loop is thread local, so there can only ever be one master per thread. These two things together completely obviate the need for a handler context. | |||||
* | asyncio: remove master.add_log, in favor of a persistent log.Log instance | Aldo Cortesi | 2018-04-07 | 1 | -1/+1 | |
| | ||||||
* | asyncio: remove test master.has_log | Aldo Cortesi | 2018-04-07 | 6 | -28/+38 | |
| | | | | | Now that logs are async, using this call is almost always a mistake. Signal this by making it semi-private. The method may go away entirely down the track. | |||||
* | asyncio: move log mechanism onto the event loop | Aldo Cortesi | 2018-04-07 | 17 | -91/+114 | |
| | | | | | | Logs are now asynchronous, with a log entry pushed onto the event loop for handling. To support this, the test mechanism grows an await_log method that waits for a log entry to appear. | |||||
* | asyncio simplify: we don't need a queue for proxy->main loop comms | Aldo Cortesi | 2018-04-07 | 8 | -63/+65 | |
| | | | | Instead, we just schedule coroutines directly onto the core loop. | |||||
* | asyncio: remove last vestiage of channel input from master | Aldo Cortesi | 2018-04-07 | 1 | -10/+9 | |
| | ||||||
* | Merge pull request #3031 from itzikBraun/add-httpie-export | Aldo Cortesi | 2018-04-06 | 1 | -1/+29 | |
|\ | | | | | added option to export request as httpie command | |||||
| * | added option to export request as httpie command | itzikBraun | 2018-04-02 | 1 | -1/+29 | |
| | | ||||||
* | | Merge pull request #2971 from kira0204/user-script-exception | Aldo Cortesi | 2018-04-06 | 1 | -3/+15 | |
|\ \ | | | | | | | A unified handler for user's scripts exception | |||||
| * | | use error handler function | kira0204 | 2018-03-26 | 1 | -3/+3 | |
| | | | ||||||
| * | | User script exception handler[squash] | kira0204 | 2018-03-07 | 1 | -0/+12 | |
| | | | | | | | | | | | | | | | | | | fixing 2837, added test unified-function deleting the wrong commit | |||||
* | | | fix http retry timeout | Maximilian Hils | 2018-04-05 | 1 | -38/+6 | |
| | | | | | | | | | | | | this fixes #3038 | |||||
* | | | minor fixes | Aldo Cortesi | 2018-04-03 | 2 | -10/+4 | |
| | | | ||||||
* | | | asyncio: factor out test server startup wait | Aldo Cortesi | 2018-04-03 | 3 | -12/+7 | |
| | | | ||||||
* | | | asyncio: cleanup and lint | Aldo Cortesi | 2018-04-02 | 2 | -2/+7 | |
| | | | | | | | | | | | | Also fix a racy websocket test. | |||||
* | | | asyncio: test cleanup | Aldo Cortesi | 2018-04-02 | 3 | -8/+18 | |
| | | | | | | | | | | | | | | | | | | Also silence asyncio logs. We sometimes end up with messages on the queue that need to be ignored when the proxy shuts down, and asyncio complains loudly about this. | |||||
* | | | asyncio: make http2 tests pass | Aldo Cortesi | 2018-04-02 | 2 | -2/+6 | |
| | | | ||||||
* | | | asyncio: fix a few remaining issues in proxy/test_server.py | Aldo Cortesi | 2018-04-02 | 2 | -9/+14 | |
| | | | ||||||
* | | | asyncio: fix channel interface and tests | Aldo Cortesi | 2018-04-01 | 2 | -19/+23 | |
| | | | | | | | | | | | | | | | We now need to synthesize a tick event when changing addons in tests, because tick is asynchronously called on the event loop. | |||||
* | | | asyncio: start a test loop for unit tests | Aldo Cortesi | 2018-04-01 | 2 | -11/+3 | |
| | | | | | | | | | | | | | | | Also move signal handling out of master. These only work in the main thread, and properly belong in main.py. | |||||
* | | | asyncio: clean up event loop acquisition | Aldo Cortesi | 2018-04-01 | 1 | -80/+9 | |
| | | | | | | | | | | | | | | | | | | | | | We now acquire the event loop through asyncio.get_event_loop, avoiding having to pass the loop explicity in a bunch of places. This function does not return the currently running loop from within coroutines in versions of Python prior to 3.6. | |||||
* | | | asyncio: brutally rip out our old queue mechanism | Aldo Cortesi | 2018-04-01 | 6 | -97/+106 | |
| |/ |/| | ||||||
* | | Python 3.5 is dead -- long live Python 3.6! | Thomas Kriechbaumer | 2018-03-31 | 3 | -19/+4 | |
| | | | | | | | | fixes #2266 | |||||
* | | fix Tornado 5.0 event loop | Thomas Kriechbaumer | 2018-03-24 | 1 | -0/+4 | |
| | | | | | | | | https://github.com/tornadoweb/tornado/issues/2183#issuecomment-371001254 | |||||
* | | don't crash if server address is unknown, fix #2969 | Maximilian Hils | 2018-03-23 | 2 | -0/+7 | |
| | | ||||||
* | | bench: Add some very simple manual benchmarking helpers | Aldo Cortesi | 2018-03-17 | 6 | -0/+93 | |
| | | | | | | | | | | This includes a profiler addon that we might consider for promotion to a builtin down the track. | |||||
* | | Merge pull request #2956 from kira0204/test-for-2850 | Maximilian Hils | 2018-03-15 | 1 | -0/+25 | |
|\ \ | | | | | | | Test for #2850 | |||||
| * | | adding command | kira0204 | 2018-03-12 | 1 | -3/+5 | |
| | | | ||||||
| * | | Testing using addon | kira0204 | 2018-03-12 | 1 | -11/+17 | |
| | | | ||||||
| * | | fixing lint | kira0204 | 2018-03-07 | 1 | -3/+3 | |
| | | | ||||||
| * | | using asserts | kira0204 | 2018-03-07 | 1 | -0/+3 | |
| | | | ||||||
| * | | wrong additions | kira0204 | 2018-03-06 | 1 | -0/+14 | |
| |/ | | | | | | | | | | | | | | | | | | | test-for-2850 few fixes mock testing Typo error | |||||
* | | Merge pull request #2945 from kajojify/shortening | Aldo Cortesi | 2018-03-05 | 1 | -0/+28 | |
|\ \ | | | | | | | Polite shortening of statusbar messages. Fix #1433 | |||||
| * | | Minor fixes. | Miroslav | 2018-03-03 | 1 | -12/+11 | |
| | | | | | | | | | | | | | | | | | | | | | Renaming prep_message method to shorten_message. Docstring. \u2026 instead of .... max_width parameter. | |||||
| * | | Finalization of tests. Conditions rewritten again. | Miroslav | 2018-03-02 | 1 | -19/+23 | |
| | | | ||||||
| * | | Initial tests. New conditions. | Miroslav | 2018-03-01 | 1 | -0/+25 | |
| | | | ||||||
* | | | Merge pull request #2868 from kira0204/data-crash | Maximilian Hils | 2018-03-04 | 1 | -2/+2 | |
|\ \ \ | |_|/ |/| | | Fix crashing when editing form with random data, fix #2794 | |||||
| * | | Testing | kira0204 | 2018-02-19 | 1 | -1/+1 | |
| | | | ||||||
| * | | Adding test | kira0204 | 2018-02-16 | 1 | -1/+1 | |
| | | | ||||||
* | | | clean up ProxyConfig | Maximilian Hils | 2018-02-27 | 3 | -24/+20 | |
| |/ |/| | | | | | | | some of these options weren't even used anymore, others only in one place where it makes sense to use options directly. |