You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var contentFile = ".node-xmlhttprequest-content-" + process.pid;
var syncFile = ".node-xmlhttprequest-sync-" + process.pid;
However, when running in workers this is not enough, due to the fact that the process.pid is the same across workers. This causes a filename collision.
Appending a UUID to the key fixes the problem.
var uniqueId = process.pid + "-" + uuid.v4();
var contentFile = ".node-xmlhttprequest-content-" + uniqueId;
var syncFile = ".node-xmlhttprequest-sync-" + uniqueId;
The text was updated successfully, but these errors were encountered:
In XMLHttpRequest.js lines 479-480, two filenames are defined using process.pid as a unique key.
However, when running in workers this is not enough, due to the fact that the process.pid is the same across workers. This causes a filename collision.
Appending a UUID to the key fixes the problem.
The text was updated successfully, but these errors were encountered: