Re: wininet(3/6): Default to 10 minutes expiration for cache entries
3 Mar
2011
3 Mar
'11
8:05 a.m.
Juan Lang <juan.lang(a)gmail.com> wrote:
+ if (!expirationFound) + { + SYSTEMTIME st; + + /* With no known age, default to 10 minutes until expiration. */ + GetSystemTime(&st); + if (st.wMinute < 50) + st.wMinute += 10; + else + { + st.wHour += 1; + st.wMinute -= 50; + } + SystemTimeToFileTime(&st, &request->expires); }
Well, st.wHour could also everflow, it shuild be easier to add an appropriate period to the resulting 64-bit number. -- Dmitry.
5403
Age (days ago)
5403
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov