We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c1ad77 commit c876910Copy full SHA for c876910
lib/helpers/child-process.js
@@ -1,5 +1,13 @@
1
"use strict";
2
-
+/*
3
+ * A new process is spawned with this file for each task.
4
+ * Inter process comunication is used to send and receive message from the parent process regarding the task.
5
+ * This let us finely control the behavior of the hydration function.
6
+ * If it happens to get stuck in a subprocess or in an HTTP blackhole,
7
+ * the master process can simply kill the child and resume its normal operation.
8
+ * Without the sub-process isolation, we get stuck quite fast and get leaks everywhere.
9
+ */
10
+
11
var crypto = require('crypto');
12
var async = require("async");
13
var fs = require('fs');
0 commit comments