我发送一个请求并将超时设置为2秒,如果激活了超时,则程序将执行特定操作。
Private Sub workbook_open()
Dim MyCon As WorkbookConnection
Dim ODBCMyCon As ODBCConnection
For Each MyCon In ThisWorkbook.Connections
Set ODBCMyCon = MyCon.ODBCConnection
ODBCMyCon.SavePassword = False
Next
For Each MyCon In ThisWorkbook.Connections
ODBCMyCon.connection.Refresh
Next
MsgBox ("Connection credentials are cleared")
End Sub
在本地系统上,一切正常。但是,当我将应用程序部署到heroku并使用gunicorn时,超时无法正常工作。我不确定枪支是否是问题,但我怀疑是问题。