mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-19 15:29:05 +08:00
fix
This commit is contained in:
parent
a3412ef180
commit
da1098f38d
@ -340,6 +340,7 @@ export class CrawlerHost extends RPCHost {
|
||||
}
|
||||
}
|
||||
const crawlOpts = await this.configure(crawlerOptions);
|
||||
this.logger.info(`Accepting request from ${uid || ctx.ip}`, { opts: crawlerOptions });
|
||||
if (crawlerOptions.robotsTxt) {
|
||||
await this.robotsTxtService.assertAccessAllowed(targetUrl, crawlerOptions.robotsTxt);
|
||||
}
|
||||
|
@ -44,10 +44,6 @@ export class CrawlStandAloneServer extends KoaServer {
|
||||
const ar = new AsyncResource('HTTP2ServerRequest');
|
||||
ar.runInAsyncScope(fn, this.koaApp, req, res);
|
||||
});
|
||||
// HTTP2 p2p may break the load balancing
|
||||
this.httpServer.updateSettings({
|
||||
maxConcurrentStreams: 8,
|
||||
});
|
||||
// useResourceBasedDefaultTracker();
|
||||
|
||||
return this;
|
||||
|
@ -44,10 +44,6 @@ export class SearchStandAloneServer extends KoaServer {
|
||||
const ar = new AsyncResource('HTTP2ServerRequest');
|
||||
ar.runInAsyncScope(fn, this.koaApp, req, res);
|
||||
});
|
||||
// HTTP2 p2p may break the load balancing
|
||||
this.httpServer.updateSettings({
|
||||
maxConcurrentStreams: 8,
|
||||
});
|
||||
// useResourceBasedDefaultTracker();
|
||||
|
||||
return this;
|
||||
|
@ -45,10 +45,6 @@ export class SERPStandAloneServer extends KoaServer {
|
||||
const ar = new AsyncResource('HTTP2ServerRequest');
|
||||
ar.runInAsyncScope(fn, this.koaApp, req, res);
|
||||
});
|
||||
// HTTP2 p2p may break the load balancing
|
||||
this.httpServer.updateSettings({
|
||||
maxConcurrentStreams: 50,
|
||||
});
|
||||
// useResourceBasedDefaultTracker();
|
||||
|
||||
return this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user