Skip to content

Socket unref #217

@xxorax

Description

@xxorax

I try to call unref on the socket, to allow the process exit without waiting the end of the socket.
So I try to do in the "ready" event (where the socket is initialised) :

conn.once('ready', function () {
  conn._sock.unref();

But it seems not work... (I'm on node v0.10.35)

Is there other socket I should care ?
Or Is it possible you implement an option for this ?

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions