Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use str.format() from PEP 3101 | engn33r | 2023-04-08 | 1 | -4/+4 |
| | |||||
* | revert fc525b1, http proxy uses URL port unlike SOCKS proxies | engn33r | 2022-08-25 | 1 | -6/+6 |
| | |||||
* | Fix bug that set http proxy to port 80 | engn33r | 2022-08-25 | 1 | -6/+6 |
| | |||||
* | Allow passing `http_proxy_timeout` to `run_forever`. (#842) | Adam Wojtczak | 2022-08-24 | 1 | -2/+2 |
| | | | | | | | | | | * Allow passing `http_proxy_timeout` to `run_forever` * Normalize docstring * fix flake8 lint Co-authored-by: Adam Wojtczak <adam.wojtczak@cybercare.cc> Co-authored-by: engn33r <engn33r@users.noreply.github.com> | ||||
* | Fix unclosed socket when 'error.errno in eConnRefused'. (#826) | bvd0 | 2022-06-01 | 1 | -3/+2 |
| | |||||
* | Update copyright year to 2022 | engn33r | 2021-12-31 | 1 | -1/+1 |
| | |||||
* | Add errno.ENETUNREACH to _http.py retry loop | engn33r | 2021-12-30 | 1 | -2/+2 |
| | | | Based on code from issue 522 and information gathered from issues 764 and 775 | ||||
* | Remove EINTR branch from PR #528. PEP 475 handles Python 3.5+ | engn33r | 2021-12-13 | 1 | -3/+1 |
| | | | | When PR #528 was submitted, older versions of Python were supported. Now only Python 3.6+ is supposed, so we can rely on PEP 475 | ||||
* | add support to pass custom ssl.SSLContext into sslopt param (#762) | Chris Wheeler | 2021-11-26 | 1 | -9/+9 |
| | |||||
* | Remove HAVE_CONTEXT_CHECK_HOSTNAME var, edit check_hostname logic after ↵ | engn33r | 2021-11-26 | 1 | -10/+12 |
| | | | | PROTOCOL_TLS_CLIENT switch | ||||
* | Fix testConnect test case with tuple of errors | engn33r | 2021-11-26 | 1 | -27/+29 |
| | |||||
* | Fix #760 Replace deprecated ssl.PROTOCOL_TLS with ssl.PROTOCOL_TLS_CLIENT | engn33r | 2021-11-22 | 1 | -1/+1 |
| | |||||
* | Py2->3: simplify class definition (#750) | 谭九鼎 | 2021-10-20 | 1 | -1/+1 |
| | | | Remove implied and redundant object class type declarations | ||||
* | Fix python-socks dependency and replace echo.websocket.org in tests | engn33r | 2021-08-11 | 1 | -0/+9 |
| | | | | | | | | The recent addition of python-socks required it to be a dependency. This was mentioned in #728. Additional changes were made to prevent python-socks from becoming a required dependency for every install, so now it is only required for SOCKS proxy usage. Additionally, because echo.websockets.org was experiencing downtime issues during this fix, echo.websockets.org was replaced in unit tests with a local echo server from the Python websockets library. This should speed up tests, avoid test errors cause by external website downtime, and reduce traffic to echo.websocket.org caused by this project. | ||||
* | Transition from LGPL 2.1 license to Apache 2.0 - fix #697 | engn33r | 2021-08-10 | 1 | -13/+11 |
| | |||||
* | Revert #417 and reimplement proxy support with python-socks | engn33r | 2021-08-10 | 1 | -42/+46 |
| | | | | | | | | | | | | Due to the ongoing license change process in #697, PR #417 from @jhtitor needed to be removed. PR #417 added SOCKS proxy support using PySocks, which is the most popular Python SOCKS proxy and is used by libraries such as 'requests' and 'urllib3'. However, as of mid-2021, PySocks has not seen any activity since Sep 2019 and has several open issues. Because PySocks does not appear to be maintained and has no forks that are actively trying to replace the old repository, python-socks may be a better choice going forward. Although python-socks is a newer project, it has good code coverage and recent commits from earlier this year (2021). | ||||
* | Replace deprecated ssl.PROTOCOL_SSLv23 with ssl.PROTOCOL_TLS | engn33r | 2021-06-03 | 1 | -1/+1 |
| | |||||
* | Add sslopt 'server_hostname' to be able to pass SNI check when connecting by ↵ | wildraid | 2021-05-31 | 1 | -0/+3 |
| | | | | IP address (#698) | ||||
* | Cast proxy_port to int from str | engn33r | 2021-05-30 | 1 | -1/+1 |
| | | | Without casting to an int, will encounter `TypeError: an integer is required (got type str)` when using PySocks 1.7.1 to connect to a SOCKS proxy like shadowsocks (see issue #696) | ||||
* | Improve _abnf.py and _http.py test coverage | engn33r | 2021-05-16 | 1 | -2/+1 |
| | |||||
* | Remove unnecessary Python2 code | engn33r | 2021-05-15 | 1 | -10/+1 |
| | |||||
* | Fix: ResourceWarning unclosed socket (#690) | rmkraeuchi | 2021-05-15 | 1 | -0/+2 |
| | | | Close socket if error occurs during opening socket | ||||
* | Improve test coverage of _http.py | engn33r | 2021-05-06 | 1 | -5/+4 |
| | |||||
* | First pass removing Python 2 code, mostly six dependency | engn33r | 2021-05-04 | 1 | -7/+2 |
| | |||||
* | PEP8 style compliance fixes | engn33r | 2021-05-04 | 1 | -9/+10 |
| | |||||
* | Fix #649 case of multiple set-cookie response headers | engn33r | 2021-04-26 | 1 | -1/+4 |
| | |||||
* | uses HTTP/1.1 for connect method (#677) | GtTmy | 2021-04-19 | 1 | -1/+3 |
| | | | and add Host header for proxy connections | ||||
* | Fix #526 by reverting invalid BSD license migration in commit e94ed9e to ↵ | engn33r | 2021-02-22 | 1 | -2/+1 |
| | | | | return to LGPL2.1 | ||||
* | Merge branch 'master' into master | liris | 2019-12-25 | 1 | -2/+5 |
|\ | |||||
| * | Merge pull request #573 from devmonkey22/master | liris | 2019-12-25 | 1 | -5/+4 |
| |\ | | | | | | | Resolve issue opening socket to intranet on Windows 10 with no proxy settings but behind proxy | ||||
| | * | Resolve issue opening socket to intranet on Windows 10 with no proxy ↵ | Mike D | 2019-09-16 | 1 | -5/+4 |
| | | | | | | | | | | | | | | | settings but behind proxy Fix for #571. Always provide `socket.SOCK_STREAM` to `socket.getaddrinfo`. | ||||
| * | | Fix getting 400 bad request with long proxy authorization string | truong.hua | 2019-12-02 | 1 | -1/+1 |
| |/ | |||||
* | | Pep8 fixes | azaugg | 2019-04-24 | 1 | -1/+2 |
|/ | |||||
* | Merge pull request #528 from trygveaa/fix-interrupted-system-call | liris | 2019-02-23 | 1 | -16/+22 |
|\ | |||||
| * | Retry connect on "Interrupted system call" | Trygve Aaberge | 2019-02-20 | 1 | -16/+22 |
| | | | | | | | | | | | | | | | | | | When connecting to a socket, EINTR ("Interrupted system call") may be raised if the application receives a signal at the same time. Prior to Python 3.5, applications has to handle this themselves by retrying the connection. For more details, see https://www.python.org/dev/peps/pep-0475/ Fixes #527 | ||||
* | | fixed error | liris | 2019-02-23 | 1 | -1/+2 |
|/ | |||||
* | fixed #497 proxy issuev0.54.0 | liris | 2018-11-01 | 1 | -1/+1 |
| | |||||
* | Miscellaneous code cleanup | Instance | 2018-09-22 | 1 | -1/+1 |
| | |||||
* | Merge pull request #427 from element-82/master | liris | 2018-05-27 | 1 | -1/+5 |
|\ | | | | | _http.py: fix windows proxy error due to socktype | ||||
| * | _http.py: fix windows proxy error due to socktype | Paul Barrette | 2018-05-04 | 1 | -1/+5 |
| | | | | | | | | | | | | | | | | | | | | Resolves #426 When running on windows 10 with a proxy, there is a connect error: _on_error: exception Socket type must be stream or datagram, not 0 This commit fixes that issue. Signed-off-by: Paul Barrette <paulbarrette@gmail.com> | ||||
* | | Merge pull request #417 from jhtitor/master | liris | 2018-05-27 | 1 | -1/+56 |
|\ \ | | | | | | | socks5 via pysocks support | ||||
| * | | Add pysocks support. | jhtitor | 2018-03-30 | 1 | -1/+56 |
| |/ | |||||
* | | Merge pull request #415 from minus7/master | liris | 2018-05-27 | 1 | -8/+11 |
|\ \ | | | | | | | Load system default certificates if none are given | ||||
| * | | Remove bundled cacert.pem | minus | 2018-03-21 | 1 | -7/+5 |
| | | | |||||
| * | | Check if SSLContext supports loading default certs | minus | 2018-03-21 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | This changes behavior. When creating a TLS connection, not specifying cacert/capath and while on a Python version without load_default_certs, creating the socket will not fail as before, but verifying the connection will fail instead. | ||||
| * | | Load system default certificates if none are given | minus | 2018-03-21 | 1 | -1/+6 |
| |/ | |||||
* | | Merge pull request #409 from hugobordigoni/master | liris | 2018-05-27 | 1 | -1/+1 |
|\ \ | | | | | | | fix #408 | ||||
| * | | fix #408 | Hugo Bordigoni | 2018-03-01 | 1 | -1/+1 |
| |/ | |||||
* | | Fix the issue that websocket status message may not present | Kevin Wang | 2018-02-22 | 1 | -1/+2 |
|/ | |||||
* | Added status message when HTTP can't be upgraded to WS | Dmitry Mottl | 2018-02-14 | 1 | -2/+4 |
| |