Skip to content

dgram: add maxSendQueueSize socket option

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/dgram into master

This commit adds a maxSendQueueSize option to dgram sockets. When used, this option prevents the socket's send queue from growing without an upper bound.

Note that the send queue contains bound send() functions. This option limits the number of outstanding sends, not the actual size of the data being sent.

This is a WIP because docs and tests are still needed. I wanted to get feedback first.

Fixes: https://github.com/nodejs/node-v0.x-archive/pull/8705

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

dgram

Merge request reports

Loading