max connections

This commit is contained in:
Ben Wilson 2023-08-03 23:34:55 -04:00
parent d7c64ad0b9
commit b6e71997e9
2 changed files with 7 additions and 3 deletions

View File

@ -41,7 +41,7 @@ const ORMModules = [
logging: false,
enableWAL: true,
busyErrorRetry: 120 * 1000,
// busyTimeout: 120 * 1000,
busyTimeout: 120 * 1000,
}),
CacheModule.register(),

View File

@ -41,7 +41,7 @@ export class StratumV1Service implements OnModuleInit {
}
private startSocketServer() {
new Server(async (s: Socket) => {
const server = new Server(async (s: Socket) => {
const promiseSocket = new PromiseSocket(s);
@ -86,7 +86,11 @@ export class StratumV1Service implements OnModuleInit {
});
}).listen(3333, () => {
});
server.maxConnections = 300;
server.listen(3333, () => {
console.log(`Bitcoin Stratum server is listening on port ${3333}`);
});