You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/12/11 01:38:44 UTC

[GitHub] [skywalking-python] kezhenxu94 commented on a change in pull request #98: [Bugfix] allow pending data to send before exit

kezhenxu94 commented on a change in pull request #98:
URL: https://github.com/apache/skywalking-python/pull/98#discussion_r540626183



##########
File path: skywalking/agent/__init__.py
##########
@@ -38,7 +39,8 @@ def __heartbeat():
 def __report():
     while not __finished.is_set():
         if connected():
-            __protocol.report(__queue)  # is blocking actually
+            while __protocol.report(__queue):  # blocking but has timeout
+                pass

Review comment:
       So maybe this is unnecessary after your latest commit? And there is no timeout actually (the comment says it has, which is confusing)




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org