Title: bug: Buffer overflow · Issue #318 · binarytf/binarytf · GitHub
Open Graph Title: bug: Buffer overflow · Issue #318 · binarytf/binarytf
X Title: bug: Buffer overflow · Issue #318 · binarytf/binarytf
Description: Is there an existing issue for this? I have searched the existing issues Description of the bug Can't find the exact line this parse error is coming from. But this errors belongs to this code. Veza uses binarytf to serialize and deserial...
Open Graph Description: Is there an existing issue for this? I have searched the existing issues Description of the bug Can't find the exact line this parse error is coming from. But this errors belongs to this code. Veza...
X Description: Is there an existing issue for this? I have searched the existing issues Description of the bug Can't find the exact line this parse error is coming from. But this errors belongs to this code. ...
Opengraph URL: https://github.com/binarytf/binarytf/issues/318
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: Buffer overflow ","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have searched the existing issues\r\n\r\n### Description of the bug\r\n\r\nCan't find the exact line this parse error is coming from. But this errors belongs to this code.\r\nVeza uses binarytf to serialize and deserialize the data that it sends. Now the issue below comes while serialize/deserialize only.\r\n\r\n```js\r\nparse error @1:0: 4 (not well-formed (invalid token)).\r\n[ 1080205 ]: | Tue, 19 Jul 2022 00:52:08 | INFO | Manager.log | Worker Disconnected: worker1080220\r\n[ 1080205 ]: | Tue, 19 Jul 2022 00:52:08 | ERROR | Manager.log | Error: Socket has been disconnected.\r\n at ServerSocket.disconnect (/home/Sofi/node_modules/veza/dist/lib/ServerSocket.js:80:33)\r\n at ServerSocket._onClose (/home/Sofi/node_modules/veza/dist/lib/ServerSocket.js:115:14)\r\n at Socket.emit (node:events:527:28)\r\n at Socket.emit (node:domain:475:12)\r\n at TCP.\u003canonymous> (node:net:709:12)\r\n```\r\n\r\n### Steps To Reproduce\r\n\r\n1. Create a server.\r\n2. Spawn 12 child processes that connect to the bove server which is the parent process as well.\r\n3. Heavy communication (for a few minutes-hours sometimes one of the child sends `parse error @1:0: 4 (not well-formed (invalid token)).` and gets disconnected and child process never reconnect)\r\n\r\n### Expected behavior\r\n\r\nIt should ignore the error and not disconnect. If it gets disconnected then worker having the retry quota available should be able to reconnect back\r\n\r\n### Screenshots\r\n\r\n\r\n\r\n\r\n### Additional context\r\n\r\n_No response_","author":{"url":"https://github.com/legendhimself","@type":"Person","name":"legendhimself"},"datePublished":"2022-07-19T02:16:54Z","url":"https://github.com/binarytf/binarytf/issues/318"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:36d78cb3-4a8a-b9c1-2752-42809870a6b7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90FE:2F671E:2BF455:3A8B82:6B04B75B |
| html-safe-nonce | 296b302043af415257da76923fb8b5b3128441d80254ee13ae4e23521cb9c39d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEZFOjJGNjcxRToyQkY0NTU6M0E4QjgyOjZCMDRCNzVCIiwidmlzaXRvcl9pZCI6IjI2ODI0MDMxMTc2MzQ3Mjk4MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1d83a40fdb93366eba5777849bc898d0417cdc4e3c74f3e005e06a4a91c92ab9 |
| hovercard-subject-tag | issue:1308887481 |
| 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/binarytf/binarytf/318/issue_layout |
| twitter:image | https://opengraph.githubassets.com/febc57dd79338490603dfde6c3317a9194c46c826e07e30af615371910a5d766/binarytf/binarytf/issues/318 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/febc57dd79338490603dfde6c3317a9194c46c826e07e30af615371910a5d766/binarytf/binarytf/issues/318 |
| og:image:alt | Is there an existing issue for this? I have searched the existing issues Description of the bug Can't find the exact line this parse error is coming from. But this errors belongs to this code. Veza... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | legendhimself |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| turbo-cache-control | no-preview |
| go-import | github.com/binarytf/binarytf git https://github.com/binarytf/binarytf.git |
| octolytics-dimension-user_id | 53312901 |
| octolytics-dimension-user_login | binarytf |
| octolytics-dimension-repository_id | 175986256 |
| octolytics-dimension-repository_nwo | binarytf/binarytf |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 175986256 |
| octolytics-dimension-repository_network_root_nwo | binarytf/binarytf |
| 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 | b032e77f1ea437ede6c115446a0a467709b468e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width