| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* rel example
* tweaked rel example for linter
* added rel note to examples.rst
* slightly more compact example
* added example header
* matched wording
* _socket.recv(): _recv() except socket.error - changed or to and; added except TimeoutError - raise WebSocketTimeoutException
* _app - custom dispatcher check_callback() integration (and fixed pyevent compatibility): WrappedDispatcher (for use with generic event dispatchers such as pyevent and rel); create_dispatcher() accepts dispatcher kwarg (default None), and if it is specified, returns a WrappedDispatcher; use create_dispatcher() (passing specified dispatcher if any) every time (regardless of dispatcher specification)
* Add clarifying comment, rerun CI tests
* Add space to make linter happy
Co-authored-by: engn33r <engn33r@users.noreply.github.com>
|
| |
|
|
|
| |
Remove implied and redundant object class type declarations
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This works from python 3.4 onwards and provides the most efficient
implementation depending on the current platform.
https://docs.python.org/3/library/selectors.html#selectors.DefaultSelector
|
| |
|
|
|
|
| |
return to LGPL2.1
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For non-blocking sockets with the timeout set to 0, the select call in
_recv and _send will return immediately without the socket being ready.
This causes _recv to return None, which makes recv close the connection.
Since a select with a timeout of 0 right after recv/send is pointless,
just skip _recv and _send when timeout is 0.
As for the handling of SSLWantReadError, SSLWantWriteError, EAGAIN and
EWOULDBLOCK in _recv/_send, websocket-client can't handle these without
blocking. Since applications which has timeout set to 0 don't want
websocket-client to block them, they have to handle those errors
themselves.
Fixes #535
|
|
|
|
|
|
|
|
|
|
| |
* Fix ssl socket handling
Handle them as recommended in here
https://bugs.python.org/issue21430 and in
python documentation. Do not use undocumented
SSLSocket pending
* Increase version
|
|
|
|
|
|
|
|
|
|
| |
The previous message used for detecting SSL was too specific and was
missing cases where SSL simply returned "timed out". This patch changes
the detection to mirror what is done in the send for detecting timeouts.
Fixes #387
Signed-off-by: Tim Rozet <tdrozet@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, because of the multiple instances of `from foo import *`, names were
imported from modules that had themselves imported them, instead of from the
place of definition. This commit therefore does the following:
- Declares `__all__` in every module that imports anything, so that
`from foo import *` is sane.
- Sorts the imports based on conventions, similar to the output of `isort`.
- Places all conditional imports after unconditional imports, except where that
isn't valid.
- Imports local names from the modules where they are defined, except when
importing the package itself.
|
|
|
|
| |
Line length is set to 80 characters; tests are excluded.
|
| |
|
| |
|
|
|
|
| |
seems to return just an integer error code from extract_err_message.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|