0
代碼看起來像這樣HTTPS請求超時,服務器重啓後
var request = WebRequest.Create(new Uri(reqStr, UriKind.Absolute));
request.Method = "POST";
request.Timeout = 15000;
Stream dataStream = request.GetRequestStream();
WebResponse response = request.GetResponse();
var dataStreamResp = response.GetResponseStream();
我把它每10秒,並能正常工作。如果我禁用我的本地連接,然後啓用,它計數工作。但是,當服務器重新啓動時,我收到timout異常(服務器在重新啓動後工作)。問題是什麼?