Skip to content

Server crashing on setMulticastInterface throwing EADDRNOTAVAIL #77

@Menlog-DD

Description

@Menlog-DD

Hello,

I am wondering if this is the normal behavior not to catch any error that might be thrown from call to setMulticastInterface

socket.setMulticastInterface(opts.interface || defaultInterface())

As specified in dgram's documentation, a call to setMulticastInterface might throw a System Error such as EADDRNOTAVAIL or EPROTONOSUP
https://nodejs.org/api/dgram.html#dgram_call_results

For now i didn't find a way to properly catch this exception in my program other than using process.on('uncaugthException') which i find ugly

Am I missing something or is it the only way ?

Ty for your time

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