阅读背景:

如何限制Python中函数调用的执行时间

来源:互联网 

There is a socket related function call in my code, that function is from another module thus out of my control, the problem is that it blocks for hours occasionally, which is totally unacceptable, How can I limit the function execution time from my code? I guess the solution must utilize another thread.There is a socket related function call in my c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: