cloudcms-server 3.2.301 → 3.2.303
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/server/index.js +10 -2
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
},
|
|
7
7
|
"name": "cloudcms-server",
|
|
8
8
|
"description": "Cloud CMS Application Server Module",
|
|
9
|
-
"version": "3.2.
|
|
9
|
+
"version": "3.2.303",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git://github.com/gitana/cloudcms-server.git"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"express-useragent": "^1.0.15",
|
|
44
44
|
"extend-with-super": "^2.0.0",
|
|
45
45
|
"fast-proxy": "^2.2.0",
|
|
46
|
-
"gitana": "^1.0.
|
|
46
|
+
"gitana": "^1.0.325",
|
|
47
47
|
"handlebars": "^4.4.2",
|
|
48
48
|
"hbs": "^4.0.5",
|
|
49
49
|
"helmet": "^4.6.0",
|
package/server/index.js
CHANGED
|
@@ -1162,16 +1162,24 @@ var createHttpServer = function(app, done)
|
|
|
1162
1162
|
}
|
|
1163
1163
|
|
|
1164
1164
|
// request timeout
|
|
1165
|
-
var requestTimeout =
|
|
1165
|
+
var requestTimeout = 120000; // 2 minutes
|
|
1166
1166
|
if (process.configuration && process.configuration.timeout)
|
|
1167
1167
|
{
|
|
1168
1168
|
requestTimeout = process.configuration.timeout;
|
|
1169
1169
|
}
|
|
1170
|
-
httpServer.setTimeout(requestTimeout)
|
|
1170
|
+
httpServer.setTimeout(requestTimeout, function(socket) {
|
|
1171
|
+
try { socket.end(); } catch (e) { }
|
|
1172
|
+
try { socket.destroy(); } catch (e) { }
|
|
1173
|
+
});
|
|
1171
1174
|
|
|
1172
1175
|
// socket
|
|
1173
1176
|
httpServer.on("connection", function (socket) {
|
|
1174
1177
|
socket.setNoDelay(true);
|
|
1178
|
+
|
|
1179
|
+
socket.setTimeout(requestTimeout, function(socket) {
|
|
1180
|
+
try { socket.end(); } catch (e) { }
|
|
1181
|
+
try { socket.destroy(); } catch (e) { }
|
|
1182
|
+
});
|
|
1175
1183
|
});
|
|
1176
1184
|
|
|
1177
1185
|
done(null, httpServer);
|