com.jimuwd.xian.registry-proxy 1.1.5 → 1.1.7
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/server/index.js +2 -2
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { gracefulShutdown, registerProcessShutdownHook } from "./gracefullShutdo
|
|
|
13
13
|
import { writePortFile } from "../port.js";
|
|
14
14
|
import resolveEnvValue from "../utils/resolveEnvValue.js";
|
|
15
15
|
const { readFile } = fsPromises;
|
|
16
|
-
const limiter = new ConcurrencyLimiter(
|
|
16
|
+
const limiter = new ConcurrencyLimiter(5);
|
|
17
17
|
function removeEndingSlashAndForceStartingSlash(str) {
|
|
18
18
|
if (!str)
|
|
19
19
|
return '/';
|
|
@@ -294,7 +294,7 @@ async function writeResponseToDownstreamClient(registryInfo, targetUrl, resToDow
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
catch (err) {
|
|
297
|
-
logger.error('Failed to
|
|
297
|
+
logger.error('Failed to transfer upstream response to downstream client', err);
|
|
298
298
|
if (!resToDownstreamClient.headersSent) {
|
|
299
299
|
resToDownstreamClient.writeHead(502).end('Internal Server Error');
|
|
300
300
|
}
|