unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob b71b56046dc5cf0a6fcaae8c58e6b5d917181df6 1138 bytes (raw)
name: packages/patches/onionshare-cli-async-mode.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
Specifying the `async_mode` parameter seems to have been a workaround for
packaging on Windows and macOS.  If not given, flask_socketio.SocketIO will
probe for an available asynchronous model, e.g. `eventlet`, and otherwise gets
stuck if `gevent-socketio` is not available.

c.f. https://github.com/onionshare/onionshare/commit/ec7fa4ef16c9e1ba6028ee927c23f76c399a17a6
and  https://github.com/onionshare/onionshare/issues/1510

diff --git a/cli/onionshare_cli/web/web.py b/cli/onionshare_cli/web/web.py
index 64844b5..7e1b095 100644
--- a/cli/onionshare_cli/web/web.py
+++ b/cli/onionshare_cli/web/web.py
@@ -164,10 +164,10 @@ class Web:
         elif self.mode == "chat":
             if self.common.verbose:
                 self.socketio = SocketIO(
-                    async_mode="gevent", logger=True, engineio_logger=True
+                    logger=True, engineio_logger=True
                 )
             else:
-                self.socketio = SocketIO(async_mode="gevent")
+                self.socketio = SocketIO()
             self.socketio.init_app(self.app)
             self.chat_mode = ChatModeWeb(self.common, self)
 

debug log:

solving b71b56046dc5cf0a6fcaae8c58e6b5d917181df6 ...
found b71b56046dc5cf0a6fcaae8c58e6b5d917181df6 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).