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.
Files changed (2) hide show
  1. package/dist/index.js +5 -0
  2. 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.jimuwd.xian.registry-proxy",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "description": "A lightweight npm registry proxy with fallback support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",