You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 4, 2018. It is now read-only.
UDP packets can be sent with 0 content.
The content of the UDP packet is literally nothing, we are just sending the udp header.
Now look at the callback:
In the case of an empty udp packets we have nread == 0 and addr != NULL
When the udp handle is closed it also issues a callback with nread == 0 and addr == NULL.
This is bad API design. Users of libuv will forget to check for addr. It is already a bug in nodejs. You can't currently receive empty udp packets.
I propose to drop the callback with 0 on socket closing. Maybe add another callback in the fields.
The text was updated successfully, but these errors were encountered: