我正在使用以下版本的 Lua,它是 openWRT 环境中的数据包:
luasocket-2.0.2
luasec-0.4
lua-5.1.4
尝试使用超时进行https.request通话。尝试使用https.TIMEOUTwherelocal https = require("ssl.https")并且它永远不会超时。我尝试给出一个非常小的timeout值(我知道在那段时间我不会得到答案并且互联网连接正常)我也尝试过在https.request调用网络连接断开时。这是一个已知问题吗?还是我应该为此尝试其他方法。我猜想要么send/recieve是无限期地阻止它。
-Swapnel