Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
huajie.liu committed May 13, 2024
1 parent 3733b2f commit 926ae73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nbclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,9 @@ async def _async_poll_for_reply(
deadline = monotonic() + timeout
new_timeout = float(timeout)
else:
# if we set new_timeout None value , and pass to the function of shell_channel.get_msg, will sometimes
# blocking so need pass a timeout value, and reset the value when timeout value exhausted
# if we call shell_channel.get_msg with None timeout value, sometimes will
# block current execution forever so need pass a timeout value, so we
# need give a default value and reset the value when timeout value exhausted
deadline = monotonic() + 5
new_timeout = float(5)
error_on_timeout_execute_reply = None
Expand Down

0 comments on commit 926ae73

Please sign in to comment.