Browser: use a lock to prevent race condition when saving responses
Browser.responses_count is not modified atomically as if there were only one thread, but the AsyncLoad filter will use multiple threads and access it concurrently. As a result, multiple responses were written to the same file. Add a lock to prevent concurrency on the responses_count field.
parent
75d5aa45
Please register or sign in to comment