ulixee / platform

Home of the Ulixee Open Data Platform

Home Page:https://ulixee.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow configuration of max concurrent clients on server start

bratao opened this issue · comments

I want to use use a high number of threads to crawl a Website. However, with npx @ulixee/server start, only 10 connections is allowed.

If I start a new remote connection to hero, the connectionToCore is ignored. After a conversation the the Ulixee channel the following snippet was provided to solve this problem:

(async () => {
 await HeroCore.start({ maxConncurrentClientCount: 20 });
 const server = new UlixeeServer();
 await server.listen({ port: 8080 });
 ShutdownHandler.register(() => server.close());
})();

Fixed in 2.0.0-alpha.9