Skip to content

Commit 494e5bd

Browse files
committed
revert HEAD timeout 5000 → 2000 (matches original)
I bumped this to 5s during the springfiles rewrite without flagging it. Original was 2s. Live springfiles HEADs respond in ~80ms so 2s is fine.
1 parent 1eb72d5 commit 494e5bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Zero-K.info/AppCode/ResourceLinkProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static bool HeadCheck(string url, int length)
161161
try
162162
{
163163
var wr = (HttpWebRequest)WebRequest.Create(url);
164-
wr.Timeout = 5000;
164+
wr.Timeout = 2000;
165165
wr.Method = "HEAD";
166166
using (var res = wr.GetResponse()) return res.ContentLength == length;
167167
}

0 commit comments

Comments
 (0)