This commit is contained in:
Ben Wilson
2023-08-09 09:29:15 -04:00
parent 10f6ffa91f
commit 1973b06515
4 changed files with 26 additions and 13 deletions
+4 -1
View File
@@ -42,7 +42,10 @@ export class StratumV1Service implements OnModuleInit {
private startSocketServer() {
const server = new Server(async (socket: Socket) => {
socket.setTimeout(5000, () => {
console.log(`Client ${client.extraNonceAndSessionId} timeout`);
socket.destroy();
});
const client = new StratumV1Client(
socket,