| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
PostTask raised OverflowError once its id passed INT_MAX. Also widen the resource handler, web request, string visitor and cookie visitor ids.
| Back | FazBrowse Home | New Git URL |
Part of #765. Fixes the PostTask / PostDelayedTask overflow and widens the four handler id counters. The JavaScript and Python callback ids are not included.
PostTask and PostDelayedTask take their id from a global counter. Once it passes INT_MAX, cdef int cTaskId = int(g_taskMaxId) raises OverflowError, and then every later call fails. At 1000 tasks per second that happens after about 25 days, at 100 per second after about 8 months.
Not included: the JavaScript and Python callback ids (g_jsCallbackMaxId, g_pythonCallbackMaxId). They are sent through CefListValue, which has no 64-bit integer, so they need a different message encoding. See #765.