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
+1 -1
View File
@@ -41,7 +41,7 @@ const ORMModules = [
logging: false, logging: false,
enableWAL: true, enableWAL: true,
busyErrorRetry: 120 * 1000, busyErrorRetry: 120 * 1000,
// busyTimeout: 120 * 1000, busyTimeout: 120 * 1000,
}), }),
CacheModule.register(), CacheModule.register(),
+6 -2
View File
@@ -41,7 +41,7 @@ export class StratumV1Service implements OnModuleInit {
} }
private startSocketServer() { private startSocketServer() {
new Server(async (s: Socket) => { const server = new Server(async (s: Socket) => {
const promiseSocket = new PromiseSocket(s); 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}`); console.log(`Bitcoin Stratum server is listening on port ${3333}`);
}); });