com.jimuwd.xian.registry-proxy 1.0.69 → 1.0.70
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/dist/index.js +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -335,6 +335,11 @@ export async function startProxyServer(proxyConfigPath, localYarnConfigPath, glo
|
|
|
335
335
|
logger.error('Server error:', err);
|
|
336
336
|
reject(err);
|
|
337
337
|
});
|
|
338
|
+
server.on('connection', (socket) => {
|
|
339
|
+
logger.debug("Server on connection");
|
|
340
|
+
socket.setTimeout(60000);
|
|
341
|
+
socket.setKeepAlive(true, 30000);
|
|
342
|
+
});
|
|
338
343
|
server.listen(port, () => {
|
|
339
344
|
const address = server.address();
|
|
340
345
|
proxyPort = address.port;
|