mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-19 14:21:42 +01:00
max connections
This commit is contained in:
parent
d7c64ad0b9
commit
b6e71997e9
@ -41,7 +41,7 @@ const ORMModules = [
|
||||
logging: false,
|
||||
enableWAL: true,
|
||||
busyErrorRetry: 120 * 1000,
|
||||
// busyTimeout: 120 * 1000,
|
||||
busyTimeout: 120 * 1000,
|
||||
|
||||
}),
|
||||
CacheModule.register(),
|
||||
|
@ -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}`);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user