GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing github.com — dgram: call send callback asynchronously by yosuke-furukawa · Pull Request #1313 · nodejs/node Conversation
Member
According to this issue #486, every callbacks should be called asynchronously, But We can not run full benchmark test. If this fix is accepted, we could run full benchmark test on every release. I think libuv changes the uv_udp_send API on this commit libuv/libuv@4189122. So I just fixed callback asynchronously using
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm. Would there still be the same problem if you used
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried earlier today. setImmediate() works but process.nextTick() still hangs. From some ad hoc testing I got the impression that the event loop is making some progress - i.e. it's not that dgram.send() is truly synchronous - but it's not making enough progress for the setTimeout timer in benchmark/net/dgram.js to fire.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry to be that guy but can you wrap this line at 80 columns?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
yosuke-furukawa
added a commit
that referenced
this pull request
dgram#send callback was changed synchronously. The PR-URL is here joyent/libuv#1358 This commit is temporary fix until libuv issue is resolved. libuv/libuv#301 PR-URL: #1313 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Trevor Norris <[email protected]>
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Fishrock123
added a commit
to Fishrock123/node
that referenced
this pull request
PR-URL: nodejs#1679 Notable Changes: * win,node-gyp: the delay-load hook for windows addons has now been correctly enabled by default, it had wrongly defaulted to off in the release version of 2.0.0 (Bert Belder) nodejs#1433 * os: tmpdir()'s trailing slash stripping has been refined to fix an issue when the temp directory is at '/'. Also considers which slash is used by the operating system. (cjihrig) nodejs#1673 * tls: default ciphers have been updated to use gcm and aes128 (Mike MacCana) nodejs#1660 * build: v8 snapshots have been re-enabled by default as suggested by the v8 team, since prior security issues have been resolved. This should give some perf improvements to both startup and vm context creation. (Trevor Norris) nodejs#1663 * src: fixed preload modules not working when other flags were used before --require (Yosuke Furukawa) nodejs#1694 * dgram: fixed send()'s callback not being asynchronous (Yosuke Furukawa) nodejs#1313 * readline: emitKeys now keeps buffering data until it has enough to parse. This fixes an issue with parsing split escapes. (Alex Kocharin) * cluster: works now properly emit 'disconnect' to cluser.worker (Oleg Elifantiev) nodejs#1386 events: uncaught errors now provide some context (Evan Lucas) nodejs#1654
Fishrock123
pushed a commit
to Fishrock123/node
that referenced
this pull request
dgram#send callback was changed synchronously. The PR-URL is here joyent/libuv#1358 This commit is temporary fix until libuv issue is resolved. libuv/libuv#301 PR-URL: nodejs#1313 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Trevor Norris <[email protected]>
saghul
added a commit
to saghul/node
that referenced
this pull request
Revert "dgram: call send callback asynchronously" partially, since the fix is now done in libuv. Refs: nodejs#1313 Refs: libuv/libuv#371
bnoordhuis
pushed a commit
that referenced
this pull request
Revert "dgram: call send callback asynchronously" partially, since the fix is now done in libuv. Refs: #1313 Refs: libuv/libuv#371 PR-URL: #1889 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
nodejs-github-bot
pushed a commit
that referenced
this pull request
A JavaScript number is always bound with sqlite3_bind_double(), so it is written as REAL even when it has no fractional part. A BigInt is bound with sqlite3_bind_int64() and is the way to write an INTEGER. The type conversion table listed number under both INTEGER and REAL without saying which applies when, so the rule had to be discovered by experiment. Column type affinity hides this most of the time, which is why the cases it does not cover are surprising. Comparing against a TEXT column is the worst of them: the number 3 compares as '3.0' and silently fails to match a stored '3', with no error to point at the cause. Document the rule, the reason for it, and that case, and remove number from the table's INTEGER row. Point the virtual table section's link at the new text. better-sqlite3 binds numbers the same way and has fielded the same question repeatedly (WiseLibs/better-sqlite3#165, #627, #897, #1144, #1313), each time closed as working as intended. Fixes: #63826 Refs: WiseLibs/better-sqlite3#627 Assisted-by: Claude Opus 5.5 Signed-off-by: Trevor Burnham <[email protected]> PR-URL: #67424 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Guilherme Araújo <[email protected]>
aduh95
pushed a commit
that referenced
this pull request
A JavaScript number is always bound with sqlite3_bind_double(), so it is written as REAL even when it has no fractional part. A BigInt is bound with sqlite3_bind_int64() and is the way to write an INTEGER. The type conversion table listed number under both INTEGER and REAL without saying which applies when, so the rule had to be discovered by experiment. Column type affinity hides this most of the time, which is why the cases it does not cover are surprising. Comparing against a TEXT column is the worst of them: the number 3 compares as '3.0' and silently fails to match a stored '3', with no error to point at the cause. Document the rule, the reason for it, and that case, and remove number from the table's INTEGER row. Point the virtual table section's link at the new text. better-sqlite3 binds numbers the same way and has fielded the same question repeatedly (WiseLibs/better-sqlite3#165, #627, #897, #1144, #1313), each time closed as working as intended. Fixes: #63826 Refs: WiseLibs/better-sqlite3#627 Assisted-by: Claude Opus 5.5 Signed-off-by: Trevor Burnham <[email protected]> PR-URL: #67424 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Guilherme Araújo <[email protected]>
aduh95
pushed a commit
that referenced
this pull request
A JavaScript number is always bound with sqlite3_bind_double(), so it is written as REAL even when it has no fractional part. A BigInt is bound with sqlite3_bind_int64() and is the way to write an INTEGER. The type conversion table listed number under both INTEGER and REAL without saying which applies when, so the rule had to be discovered by experiment. Column type affinity hides this most of the time, which is why the cases it does not cover are surprising. Comparing against a TEXT column is the worst of them: the number 3 compares as '3.0' and silently fails to match a stored '3', with no error to point at the cause. Document the rule, the reason for it, and that case, and remove number from the table's INTEGER row. Point the virtual table section's link at the new text. better-sqlite3 binds numbers the same way and has fielded the same question repeatedly (WiseLibs/better-sqlite3#165, #627, #897, #1144, #1313), each time closed as working as intended. Fixes: #63826 Refs: WiseLibs/better-sqlite3#627 Assisted-by: Claude Opus 5.5 Signed-off-by: Trevor Burnham <[email protected]> PR-URL: #67424 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Guilherme Araújo <[email protected]>
gabylb
pushed a commit
to gabylb/node
that referenced
this pull request
A JavaScript number is always bound with sqlite3_bind_double(), so it is written as REAL even when it has no fractional part. A BigInt is bound with sqlite3_bind_int64() and is the way to write an INTEGER. The type conversion table listed number under both INTEGER and REAL without saying which applies when, so the rule had to be discovered by experiment. Column type affinity hides this most of the time, which is why the cases it does not cover are surprising. Comparing against a TEXT column is the worst of them: the number 3 compares as '3.0' and silently fails to match a stored '3', with no error to point at the cause. Document the rule, the reason for it, and that case, and remove number from the table's INTEGER row. Point the virtual table section's link at the new text. better-sqlite3 binds numbers the same way and has fielded the same question repeatedly (WiseLibs/better-sqlite3#165, nodejs#627, nodejs#897, nodejs#1144, nodejs#1313), each time closed as working as intended. Fixes: nodejs#63826 Refs: WiseLibs/better-sqlite3#627 Assisted-by: Claude Opus 5.5 Signed-off-by: Trevor Burnham <[email protected]> PR-URL: nodejs#67424 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Guilherme Araújo <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
dgram
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |