Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disconnect evt / investigate leak #2

Open
nha opened this issue Jul 18, 2018 · 1 comment
Open

disconnect evt / investigate leak #2

nha opened this issue Jul 18, 2018 · 1 comment

Comments

@nha
Copy link
Owner

nha commented Jul 18, 2018

investigate why disconnect event behaves differently in tests. See discussion in #1

in index.js:

no of handles 5

tcp stream { fd: 10,
  readable: false,
  writable: true,
  address: {},
  serverAddr: null }

tcp stream { fd: 12,
  readable: false,
  writable: true,
  address: {},
  serverAddr: null }

tcp stream { fd: 15,
  readable: true,
  writable: true,
  address: { address: '192.168.1.38', family: 'IPv4', port: 49554 },
  serverAddr: undefined }

unknown handle Timer {
  _list:
   TimersList {
     _idleNext:
      Timeout {
        _called: false,
        _idleTimeout: 60000,
        _idlePrev: [Circular],
        _idleNext: [Circular],
        _idleStart: 226,
        _onTimeout: [Function],
        _timerArgs: undefined,
        _repeat: null,
        _destroyed: false,
        [Symbol(unrefed)]: false,
        [Symbol(asyncId)]: 20,
        [Symbol(triggerId)]: 1 },
     _idlePrev:
      Timeout {
        _called: false,
        _idleTimeout: 60000,
        _idlePrev: [Circular],
        _idleNext: [Circular],
        _idleStart: 226,
        _onTimeout: [Function],
        _timerArgs: undefined,
        _repeat: null,
        _destroyed: false,
        [Symbol(unrefed)]: false,
        [Symbol(asyncId)]: 20,
        [Symbol(triggerId)]: 1 },
     _unrefed: false,
     msecs: 60000,
     _timer: [Circular] } }

unknown handle Timer {
  _list:
   TimersList {
     _idleNext:
      Timeout {
        _called: false,
        _idleTimeout: 20000,
        _idlePrev: [Circular],
        _idleNext: [Circular],
        _idleStart: 20234,
        _onTimeout: [Function],
        _timerArgs: undefined,
        _repeat: null,
        _destroyed: false,
        [Symbol(unrefed)]: false,
        [Symbol(asyncId)]: 48,
        [Symbol(triggerId)]: 47 },
     _idlePrev:
      Timeout {
        _called: false,
        _idleTimeout: 20000,
        _idlePrev: [Circular],
        _idleNext: [Circular],
        _idleStart: 20234,
        _onTimeout: [Function],
        _timerArgs: undefined,
        _repeat: null,
        _destroyed: false,
        [Symbol(unrefed)]: false,
        [Symbol(asyncId)]: 48,
        [Symbol(triggerId)]: 47 },
     _unrefed: false,
     msecs: 20000,
     _timer: [Circular] } }

@nha nha changed the title disconnect evt disconnect evt / investigate leak Jul 18, 2018
@nha
Copy link
Owner Author

nha commented Jul 23, 2018

Note: the Websocket close method is called

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant