-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed send_json and its dependent functions to be non-blocking. (#15)
* changed send_json and its dependent functions to be non-blocking. * connect client after timeout * changed to the previous read_exact * read_exact using bytearray but returning bytes * don't reconnect client after response timeout * handle exceptions in read_next_event * raise exception instead of print * Add function to check if the client is connected * Remove unused var * Removed client connection after exception * removed orjson * replaced is_socket_active with is_connected * make sure there is no way to hang while sending data. * remove send with timeout, causing issues with create_wayland_output * add more seconds to create_wayland_output * allow the user decide the send_json timeout * removed timeout from create wayland output --------- Co-authored-by: killown <[email protected]>
- Loading branch information
Showing
2 changed files
with
65 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters