-
Notifications
You must be signed in to change notification settings - Fork 124
feat: support tracing on diagnostics_channel #452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
80723b1
feat: support tracing on diagnostics_channel
fengmk2 92793ca
f
fengmk2 d18849d
f
fengmk2 3095788
f
fengmk2 c109335
f
fengmk2 f99f9aa
fix: handle socket localAdress missing after error throw
fengmk2 f00c128
test: use c8
fengmk2 bd89c55
f
fengmk2 19e337b
f
fengmk2 499870e
f
fengmk2 637393d
f
fengmk2 fd7dd8e
f
fengmk2 a5b1b8f
f
fengmk2 e6c7909
f
fengmk2 b6f5a94
f
fengmk2 7c34c34
feat: support retry on socket error
fengmk2 93133d1
f
fengmk2 ef7b045
f
fengmk2 da5e5c5
f
fengmk2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| const urllib = require('..'); | ||
|
|
||
| const url = process.argv[2] || 'https://cnodejs.org'; | ||
| console.log('timing: %s', url); | ||
|
|
||
| const count = 10000; | ||
|
|
||
| async function request(index) { | ||
| if (index === count) { | ||
| return; | ||
| } | ||
| const res = await urllib.request(url, { | ||
| // data: { wd: 'nodejs' }, | ||
| }); | ||
| console.log('---------------------------'); | ||
| console.log('No#%d: %s, content size: %d, requestUrls: %o, socket: %o, rt: %o', | ||
| index, res.statusCode, res.data.length, res.res.requestUrls, res.res.socket, res.res.rt); | ||
| console.log(res.res.timing, res.headers); | ||
| index++; | ||
| setImmediate(request.bind(null, index)); | ||
| } | ||
|
|
||
| request(1); | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Check failure
Code scanning / CodeQL
Hard-coded credentials