KTVHTTPCache icon indicating copy to clipboard operation
KTVHTTPCache copied to clipboard

KTVHCDataReader crash in multithreading

Open rhythmkay opened this issue 5 years ago • 0 comments

KTVHCDataReader.m Line 242 The following code which access to 'self.unit.responseHeaders' is not thread-safety.

KTVHCRangeFillToResponseHeaders(range, self.unit.responseHeaders, totalLength);

The 'responseHeaders' is multithreaded read-write. Please fix it on '[KTVDataUnit updateResponseHeaders:totalLength:]' and '[KTVHCDataReader callbackForPrepared]'.

rhythmkay avatar Apr 03 '19 06:04 rhythmkay