Title: net: setKeepAlive options ignored before connect · Issue #31663 · nodejs/node · GitHub
Open Graph Title: net: setKeepAlive options ignored before connect · Issue #31663 · nodejs/node
X Title: net: setKeepAlive options ignored before connect · Issue #31663 · nodejs/node
Description: Version: v13.7.0 Platform: linux 5.5.2 Subsystem: net If setKeepAlive() is called on a tcp socket before the connect event, then the initialDelay parameter is ignored. This bug was alread reported here for version 0.12, but it still seem...
Open Graph Description: Version: v13.7.0 Platform: linux 5.5.2 Subsystem: net If setKeepAlive() is called on a tcp socket before the connect event, then the initialDelay parameter is ignored. This bug was alread reported ...
X Description: Version: v13.7.0 Platform: linux 5.5.2 Subsystem: net If setKeepAlive() is called on a tcp socket before the connect event, then the initialDelay parameter is ignored. This bug was alread reported ...
Opengraph URL: https://github.com/nodejs/node/issues/31663
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"net: setKeepAlive options ignored before connect","articleBody":"\u003c!--\r\nThank you for reporting a possible bug in Node.js.\r\n\r\nPlease fill in as much of the template below as you can.\r\n\r\nVersion: output of `node -v`\r\nPlatform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)\r\nSubsystem: if known, please specify the affected core module name\r\n\r\nIf possible, please provide code that demonstrates the problem, keeping it as\r\nsimple and free of external dependencies as you can.\r\n--\u003e\r\n\r\n* **Version**: v13.7.0\r\n* **Platform**: linux 5.5.2\r\n* **Subsystem**: net\r\n\r\n\u003c!-- Please provide more details below this comment. --\u003e\r\n\r\nIf `setKeepAlive()` is called on a tcp socket before the `connect` event, then the `initialDelay` parameter is ignored.\r\nThis bug was alread reported [here](https://github.com/nodejs/node-v0.x-archive/issues/8572) for version 0.12, but it still seems to be there in 13.7.\r\n\r\nIf, for instance, I call `setKeepAlive(true, 10000)` before the `connect` event, the default initialDelay of 7200s is used.\r\n`netstat -ntp --timers` gives:\r\n```\r\ntcp 0 0 10.10.15.220:56866 10.10.15.148:6666 ESTABLISHED 132820/node keepalive (7132.09/0/0)\r\n```\r\n","author":{"url":"https://github.com/lgpasquale","@type":"Person","name":"lgpasquale"},"datePublished":"2020-02-06T15:05:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/31663/node/issues/31663"}
| 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:87f66db2-d282-579d-fa8d-0da6884f2698 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C86E:1EF3D5:3F6566:545B92:6A4D5EDE |
| html-safe-nonce | df8a0adce2fd2ef3b45fb27064b331082d88d013eab945c6b67a765335eb8278 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODZFOjFFRjNENTozRjY1NjY6NTQ1QjkyOjZBNEQ1RURFIiwidmlzaXRvcl9pZCI6IjQ3MzMyOTA4NTk0ODY2MDA5MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1048c388cdf9d1b083b940fed99122e3391bebd9a00ec26bc31a2864fe9a4648 |
| hovercard-subject-tag | issue:561072029 |
| 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/31663/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca772f78ef5f88bbd40d7a30876b2d5e65de19db2d21f0dd4552231180669985/nodejs/node/issues/31663 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca772f78ef5f88bbd40d7a30876b2d5e65de19db2d21f0dd4552231180669985/nodejs/node/issues/31663 |
| og:image:alt | Version: v13.7.0 Platform: linux 5.5.2 Subsystem: net If setKeepAlive() is called on a tcp socket before the connect event, then the initialDelay parameter is ignored. This bug was alread reported ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lgpasquale |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441 |
| 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 | f3bdd3157ea1f0fd738d408eceeead721acf1dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width