Skip to content

Socket emits error after closing when autorestart: true #3

Open
@Cassolette

Description

@Cassolette
app.client.on("connectionError", (err) => {
        app.error("Connection err", err);
        //process.exit(1);
    });

    app.client.on("restart", () => {
        app.error("rest");
    })

autorestart: true

  ERROR Connection err 
 Error  read ECONNRESET
details:
{
  errno: -4077,
  code: 'ECONNRESET',
  syscall: 'read'
}
error stack:
• stream_base_commons:220 onStreamRead
    node:internal\stream_base_commons:220:20


  INFO  [] restarting!
log stack:

• DbgLogging.js:56 <anonymous>
    dist\modules\DbgLogging.js:56:29

• node:events:402 emit
    node:events:402:35

• Client.js:233 <anonymous>
    transformice.js\dist\client\Client.js:233:18

• Client.js:8 <anonymous>
    transformice.js\dist\client\Client.js:8:71

2022-02-18 02:15:53.325  ERROR rest
node:events:368
      throw er; // Unhandled 'error' event
      ^
Emitted 'error' event on Connection instance at:
    at Socket.<anonymous> (transformice.js\dist\utils\Connection.js:57:18)    at Object.onceWrapper (node:events:510:26)
    at Socket.emit (node:events:390:28)
    at TCP.<anonymous> (node:net:687:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions