如果进程超过我指定的时间,是否可以重新启动进程?例如,如果响应进程超过重新启动的进程10秒,我就会生成一个响应头。
'time limit = 10 second
'if the process exceed time limit than restart the process
Dim request As System.Net.webrequest = System.Net.HttpWebRequest.Create(URL)
request.Method = "HEAD"
Dim response As System.Net.WebResponse = request.GetResponse()