Commit 111ec38
v2.4.0rc5 (#929)
* Merge pull request #896 from abhinavsingh/missed-scenarios
Avoid registering invalid FD with selectors
* [ProxyPool] Add support for basic authorization with upstream proxies (#897)
* Use `Url` class to parse proxy pool entries
* Add support for parsing user:pass from raw url bytes
* Add `httpHeaders.PROXY_AUTHORIZATION` headers for upstream proxies
* Add support for httpHeaders enum
* Send base64 encoded proxy authorization header to upstream proxies
* mypy fixes
* Document proxy pool authentication support usage info
* Add `conn_close` kwarg to packet builder utilities (#898)
* Add `conn_close` kwarg to packet builder utilities, passing True will automatically add `Connection: close` header
* Add `conn_close` to `HttpRequestRejected` responses
* Raise `HttpProtocolException` instead of `ValueError` (#899)
* Raise `HttpProtocolException` instead of `ValueError` for clean teardown of the offending connection
* Fix circular import errors
* Fix tests
* fix lint errors
* Avoid containerizing until check has passed
* Ensure message for every `HttpProtocolException` raised (#900)
* Response Packet Utilities (#903)
* Add response pkt utility
* Unused import
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix tests as some content is now by default gzipped based upon min compression config
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Remove unused
* Update necessary tests to use `okResponse` utility
* Add option to explicitly disable compression
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Introduce `ProgramNamePlugin` plugin (#904)
* Add `ProgramNamePlugin`
* Update readme
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Remove `_compat.py`
* Add suggestions coming from #659
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Update defaults for `--hostname` and `--local-executor` (#905)
* do it
* Change defaults
* integrate with ci/cd updates
* Fix ci
* Add dockerfile `SKIP_OPENSSL` option which will allow us to build container without openssl
* Skip openssl for latest tag, add another openssl tag for images with openssl support
* Push separate openssl image to GHCR for every PR
* `Work` can also be `TcpServerConnection`, not just `TcpClientConnection` (#906)
* Work can also be TcpServerConnection, not just TcpClientConnection. More over, it can be any generic work type
* Add py_class_role and py_obj
* Port internal integration tests into public repo
* Fix proxy py addr
* Use cross-platform compat shasum
* Change `--local-executor` flag semantics (#907)
* Convert `--local-executor` in an integer flag, defaults to 1 i.e. enabled, use 0 to disable
* Consider any value other than 1 as remote mode
* Use integer to disable local executor mode in integration tests
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix mypy errors
* Update flags in readme
* Check for type
* Remove pid file check for now
* Update `--local-executor` flag usage
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Clean shutdown on `SIGINT`, `SIGHUP`, `SIGTERM`, `SIGQUIT` (#908)
* sys.exit on SIGINT, SIGHUP, SIGTERM
* Add todo for pending signal actions
* SIGHUP is win only
* Remove frametype signature as it causes lint issues and we are not using it anyways
* SIGQUIT is not on Win
* Fix `HttpWebServerPacFilePlugin` broken routes logic (#915)
* Fix `HttpWebServerPacFilePlugin` broken routes logic
* lint
* Proxy Auto-Configuration (PAC) file should not be compressed (#916)
* Move `UpstreamConnectionPool` lifecycle within `Threadless` (#917)
* Tie connection pool into Threadless
* Pass upstream conn pool reference to work instances
* Mark upstream conn pool as optional
* spellcheck
* Fix unused import
* Define work lifecycle events for pool (#918)
* Define work lifecycle events for pool
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Use isinstance
* Use mocker fixture to pass CI on 3.6 and 3.7
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Hook `UpstreamConnectionPool` lifecycle within `Threadless` (#921)
* Hook connection pool lifecycle within threadless
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix test
* Fix spell
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* pip prod(deps): bump sphinx from 4.3.1 to 4.3.2 (#902)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.3.1 to 4.3.2.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES)
- [Commits](sphinx-doc/sphinx@v4.3.1...v4.3.2)
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Abhinav Singh <[email protected]>
* pip prod(deps): bump paramiko from 2.8.1 to 2.9.1 (#923)
* Optimize how `HttpProtocolHandler` delegates to the core plugins (#925)
* Add `protocols` abstract static method to `HttpProtocolHandlerBase` which defines which HTTP specification is followed by the core plugin
* lint
* Fix tests
* Lint fixes
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* [TlsParser] Refactored implementation from #748 (#922)
* Refactored TlsParser based upon work done in #748
* Add missing `tls_server_hello.data`, thanks to @JerryKwan
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Pass `check.py`
* Run check.py locally
* Fix lint errors
* Fix indentation issue
* Ignore linkcheck for cloudflare links, GHA is getting a 403 reply, while the link actually works
* Fix lint
* codespell skip
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* pip prod(deps): bump tox from 3.24.4 to 3.24.5 (#924)
Bumps [tox](https://github.com/tox-dev/tox) from 3.24.4 to 3.24.5.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst)
- [Commits](tox-dev/tox@3.24.4...3.24.5)
---
updated-dependencies:
- dependency-name: tox
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Abhinav Singh <[email protected]>
* pip prod(deps): bump twine from 3.7.0 to 3.7.1 (#927)
Bumps [twine](https://github.com/pypa/twine) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/pypa/twine/releases)
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst)
- [Commits](pypa/twine@3.7.0...3.7.1)
---
updated-dependencies:
- dependency-name: twine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Abhinav Singh <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>File tree
95 files changed
+2639
-886
lines changed- .github/workflows
- benchmark
- docs
- examples
- proxy
- common
- core
- acceptor
- base
- connection
- event
- dashboard
- http
- exception
- parser
- tls
- proxy
- server
- plugin
- tests
- core
- http
- exceptions
- integration
- plugin
- testing
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
95 files changed
+2639
-886
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
| |||
370 | 372 | | |
371 | 373 | | |
372 | 374 | | |
373 | | - | |
374 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
375 | 379 | | |
376 | 380 | | |
377 | 381 | | |
| |||
485 | 489 | | |
486 | 490 | | |
487 | 491 | | |
488 | | - | |
489 | | - | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
490 | 495 | | |
491 | 496 | | |
492 | 497 | | |
493 | | - | |
| 498 | + | |
494 | 499 | | |
495 | 500 | | |
496 | 501 | | |
| |||
667 | 672 | | |
668 | 673 | | |
669 | 674 | | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
670 | 694 | | |
671 | 695 | | |
672 | 696 | | |
673 | 697 | | |
| 698 | + | |
674 | 699 | | |
675 | | - | |
| 700 | + | |
676 | 701 | | |
677 | 702 | | |
678 | 703 | | |
679 | 704 | | |
680 | 705 | | |
681 | 706 | | |
682 | 707 | | |
| 708 | + | |
| 709 | + | |
683 | 710 | | |
684 | 711 | | |
685 | 712 | | |
| |||
727 | 754 | | |
728 | 755 | | |
729 | 756 | | |
730 | | - | |
| 757 | + | |
| 758 | + | |
731 | 759 | | |
732 | 760 | | |
733 | 761 | | |
| |||
739 | 767 | | |
740 | 768 | | |
741 | 769 | | |
| 770 | + | |
742 | 771 | | |
743 | 772 | | |
744 | 773 | | |
745 | 774 | | |
746 | 775 | | |
747 | 776 | | |
748 | 777 | | |
749 | | - | |
750 | | - | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
751 | 783 | | |
752 | 784 | | |
753 | 785 | | |
| |||
757 | 789 | | |
758 | 790 | | |
759 | 791 | | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
760 | 829 | | |
761 | 830 | | |
762 | 831 | | |
| |||
766 | 835 | | |
767 | 836 | | |
768 | 837 | | |
| 838 | + | |
769 | 839 | | |
770 | 840 | | |
771 | 841 | | |
| |||
777 | 847 | | |
778 | 848 | | |
779 | 849 | | |
| 850 | + | |
780 | 851 | | |
781 | 852 | | |
782 | 853 | | |
783 | 854 | | |
784 | 855 | | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | 856 | | |
806 | 857 | | |
807 | 858 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | | - | |
32 | 35 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
| |||
160 | 159 | | |
161 | 160 | | |
162 | 161 | | |
163 | | - | |
164 | 162 | | |
165 | 163 | | |
166 | 164 | | |
| |||
175 | 173 | | |
176 | 174 | | |
177 | 175 | | |
178 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
0 commit comments