mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
max connections
This commit is contained in:
+1
-1
@@ -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(),
|
||||||
|
|||||||
@@ -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}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user