diff options
| author | Rapptz <[email protected]> | 2020-04-14 04:22:05 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-04-14 04:22:05 -0400 |
| commit | 11211d48eb19d2ad079d6a8a0001fad24f3f4421 (patch) | |
| tree | dd34ff6e10ff70873b834cd2344d89760c07cbfc /discord/gateway.py | |
| parent | Add traceback to debug blocking issues (diff) | |
| download | discord.py-11211d48eb19d2ad079d6a8a0001fad24f3f4421.tar.xz discord.py-11211d48eb19d2ad079d6a8a0001fad24f3f4421.zip | |
Bump blocking threshold from 5 seconds to 10 seconds
Diffstat (limited to 'discord/gateway.py')
| -rw-r--r-- | discord/gateway.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/gateway.py b/discord/gateway.py index 7de75cb7..9b0f1d81 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -104,17 +104,17 @@ class KeepAliveHandler(threading.Thread): total = 0 while True: try: - f.result(5) + f.result(10) break except concurrent.futures.TimeoutError: - total += 5 + total += 10 try: frame = sys._current_frames()[self._main_thread_id] except KeyError: msg = self.block_msg else: stack = traceback.format_stack(frame) - msg = '%s\nLoop thread stacktrace:\n%s' % (self.block_msg, ''.join(stack)) + msg = '%s\nLoop thread traceback (most recent call last):\n%s' % (self.block_msg, ''.join(stack)) log.warning(msg, total) except Exception: |