If the code block in the try/finally or with-block never cooperatively yields, the timeout cannot be raised. In Eventlet, this
should rarely be a problem, but be aware that you cannot time out
CPU-only operations with this class.
If the code block catches and doesn't re-raise BaseException (for example, with except:), then it will catch the Timeout exception, and
might not abort as intended.
根据the timeout documentation:
如果在循环中没有执行任何IO/sleep,则不会发生超时。在
相关问题 更多 >
编程相关推荐