Skip to content

UDP packet loss #4199

Description

@Vavooon

Hi.
My Node app doesn't send some UDP packets.
It happens on different versions of Node (5.1.1, 0.10.x) and on different OSes (Win 10 and Raspbian (RPI Debian)).

Here's the one for reproduction:

var dgram = require("dgram");
var udpServer = dgram.createSocket("udp4");
var port = 14000;
var host = '172.16.0.7';

function send(data) {
>//console.log('s', data);
>udpServer.send(data, 0, data.length, port, host);
};

setInterval(function(){
for (var i=0; i<33; i++) {
send(new Buffer("fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));
}
}, 1000);

I guess it is the same issue: nodejs/node-v0.x-archive#6696

Wireshark shows that not all packets are sent, for example sequence ID of next packet can be bigger on 5 or even 15.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dgramIssues and PRs related to UDP and the dgram module.questionIssues asking questions about Node.js.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions