Title: dgram: socket.send without address fails with weird error on 5.7 · Issue #5398 · nodejs/node · GitHub
Open Graph Title: dgram: socket.send without address fails with weird error on 5.7 · Issue #5398 · nodejs/node
X Title: dgram: socket.send without address fails with weird error on 5.7 · Issue #5398 · nodejs/node
Description: On node 4.x and node <5.7 this worked var dgram = require('dgram') var socket = dgram.createSocket('udp4') socket.send(Buffer('hi'), 0, 2, 10000) // works on 4.x <5.7 With node 5.7 this fails with RangeError: Port should be > 0 and < 655...
Open Graph Description: On node 4.x and node <5.7 this worked var dgram = require('dgram') var socket = dgram.createSocket('udp4') socket.send(Buffer('hi'), 0, 2, 10000) // works on 4.x <5.7 With node 5.7 this fails with ...
X Description: On node 4.x and node <5.7 this worked var dgram = require('dgram') var socket = dgram.createSocket('udp4') socket.send(Buffer('hi'), 0, 2, 10000) // works on 4.x <5.7 ...
Opengraph URL: https://github.com/nodejs/node/issues/5398
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"dgram: socket.send without address fails with weird error on 5.7","articleBody":"On node 4.x and node \u003c5.7 this worked\n\n``` js\nvar dgram = require('dgram')\nvar socket = dgram.createSocket('udp4')\n\nsocket.send(Buffer('hi'), 0, 2, 10000) // works on 4.x \u003c5.7\n```\n\nWith node 5.7 this fails with\n\n```\nRangeError: Port should be \u003e 0 and \u003c 65536\n```\n\nThe dgram docs on both 4.x and 5.x say\n\n```\n If the address is not specified or is an empty string, '0.0.0.0' or '::0' will be used instead\n```\n- **Version**: v5.7.0\n- **Platform**: Darwin brunhilde.local 15.2.0 Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64\n","author":{"url":"https://github.com/mafintosh","@type":"Person","name":"mafintosh"},"datePublished":"2016-02-23T22:54:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/5398/node/issues/5398"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:52a5f787-c691-62b3-ca13-7fda9910dacd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 987E:323A96:11B7531:19D1701:6A4E396C |
| html-safe-nonce | f91696bf5cfcb22c08bcea36eb75945997de7f83a716d99f672b2c5632fe5799 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODdFOjMyM0E5NjoxMUI3NTMxOjE5RDE3MDE6NkE0RTM5NkMiLCJ2aXNpdG9yX2lkIjoiMTc4NDQ5MzA5Mjg5NzcwMDIwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 49a575d0d5684a6c4e7935bca6db9a0b4dfbb53c3b65759dd1b2bbd262e5dd3e |
| hovercard-subject-tag | issue:135892121 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/5398/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e44101e82a33e56bb3b91d0afb0c33c718f3be5632214e8e0dac4d74cb3dba69/nodejs/node/issues/5398 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e44101e82a33e56bb3b91d0afb0c33c718f3be5632214e8e0dac4d74cb3dba69/nodejs/node/issues/5398 |
| og:image:alt | On node 4.x and node <5.7 this worked var dgram = require('dgram') var socket = dgram.createSocket('udp4') socket.send(Buffer('hi'), 0, 2, 10000) // works on 4.x <5.7 With node 5.7 this fails with ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mafintosh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 42a6d378d7587a44c93aca255096cd66b7c8eb2d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width