matrix-hacks / matrix-puppet-skype

23 stars 12 forks source link

Recive messages twice after error #37

Open simkli opened 4 years ago

simkli commented 4 years ago

Sometimes following error appears in the protocol chat:

{ poll: An error happened while processing the polled messages
  caused by Error: read ECONNRESET
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
  name: 'poll',
  [_message]: 'An error happened while processing the polled messages',
  data: {},
  cause:
   { Error: read ECONNRESET
       at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
     [stack]:
      'Error: read ECONNRESET\n    at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)',
     [message]: 'read ECONNRESET',
     errno: 'ECONNRESET',
     code: 'ECONNRESET',
     syscall: 'read' },
  [_stack]:
   'poll: An error happened while processing the polled messages\n  caused by Error: read ECONNRESET\n    at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)',
  [_stackContainer]: undefined,
  message: 'An error happened while processing the polled messages',
  [stack]:
   'poll: An error happened while processing the polled messages\n  caused by Error: read ECONNRESET\n    at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)' } 

Afterwards I receive all incoming messages twice.. if the error happens again, the same message is forwarded 3 times and so on.