GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — http: Adding doc and debug for calling empty string on write function by antsmartian · Pull Request #22118 · nodejs/node

Conversation

@antsmartian

@antsmartian antsmartian commented Aug 4, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Addresses the issue : #22066

Removing the empty check would be a breaking change, however I'm not sure why such check is in first place. May be need input from the community.

In the meantime, I thought its worth to add documentation and at the same time to add debug log, so that when users feel write with empty string or buffer hangs, they can run in debug mode to find out the reason.

If the content fits for the documentation, I guess we need to add the same to http2 as well.

Open to feedbacks and thoughts.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot nodejs-github-bot added the http Issues and PRs related to the http subsystem. label Aug 4, 2018
vsemozhetbyt
vsemozhetbyt reviewed Aug 4, 2018
View reviewed changes
Comment thread doc/api/http.md Outdated

@vsemozhetbyt vsemozhetbyt Aug 4, 2018

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linter issue: 80 characters per line limit exceeded.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@antsmartian
antsmartian force-pushed the 22066 branch from 11317b8 to 116d320 Compare August 4, 2018 11:13
Trott
Trott approved these changes Aug 5, 2018
View reviewed changes
@Trott

Trott commented Aug 5, 2018

Copy link
Copy Markdown
Member

@nodejs/http

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jasnell
jasnell approved these changes Aug 6, 2018
View reviewed changes
@antsmartian

antsmartian commented Aug 6, 2018

Copy link
Copy Markdown
Contributor Author

@jasnell I guess its worth to add the same for http2 module as well right? I remember, we do handle the empty string/buffer the same way.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

trivikr
trivikr approved these changes Aug 12, 2018
View reviewed changes
mcollina
mcollina approved these changes Aug 20, 2018
View reviewed changes

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mcollina

mcollina commented Aug 20, 2018

Copy link
Copy Markdown
Member

CI: https://ci.nodejs.org/job/node-test-pull-request/16604/

I guess its worth to add the same for http2 module as well right? I remember, we do handle the empty string/buffer the same way.

@antsmartian Yes in compatibility mode.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell

jasnell commented Aug 20, 2018

Copy link
Copy Markdown
Member

Oh, sorry, missed the earlier ping. Yes, what @mcollina said :-)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Trott
Trott reviewed Aug 20, 2018
View reviewed changes
Comment thread doc/api/http.md Outdated

@Trott Trott Aug 20, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, you can ignore this, but my mild preference: Remove Note that

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@antsmartian antsmartian Aug 21, 2018

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, taken care.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@joyeecheung

joyeecheung commented Aug 20, 2018

Copy link
Copy Markdown
Member

This PR needs a rebase against master to avoid the git failure in the CI.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@antsmartian
antsmartian force-pushed the 22066 branch from 5316755 to 2d1848b Compare August 21, 2018 14:20
@antsmartian

antsmartian commented Aug 21, 2018

Copy link
Copy Markdown
Contributor Author

@joyeecheung Taken care.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mcollina

mcollina commented Aug 21, 2018

Copy link
Copy Markdown
Member

CI: https://ci.nodejs.org/job/node-test-pull-request/16634/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mcollina

mcollina commented Aug 21, 2018

Copy link
Copy Markdown
Member

Resumed: https://ci.nodejs.org/job/node-test-pull-request/16638/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Aug 21, 2018
@jasnell

jasnell commented Aug 21, 2018

Copy link
Copy Markdown
Member

Unrelated CI failures are currently keeping this from landing. It's ready to go otherwise.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Aug 22, 2018

Copy link
Copy Markdown
Member

Unrelated CI failures are currently keeping this from landing. It's ready to go otherwise.

@jasnell Needs a rebase against master to get past the CI issues. The jinja LICENSE thing is the giveaway:

12:18:15 Changes not staged for commit:
12:18:15   (use "git add <file>..." to update what will be committed)
12:18:15   (use "git checkout -- <file>..." to discard changes in working directory)
12:18:15 
12:18:15 	modified:   deps/v8/third_party/jinja2/LICENSE
12:18:15 
12:18:15 Untracked files:
12:18:15   (use "git add <file>..." to include in what will be committed)
12:18:15 
12:18:15 	env.properties

OP can rebase, or any Collaborator can rebase and force push on their behalf. Start another CI and all will hopefully be better...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@antsmartian @Trott
http: Adding doc and debug for calling empty string on write function
725923f
@Trott
Trott force-pushed the 22066 branch from 2d1848b to 725923f Compare August 22, 2018 03:38
@Trott

Trott commented Aug 22, 2018

Copy link
Copy Markdown
Member

Rebased, force-pushed. New CI: https://ci.nodejs.org/job/node-test-pull-request/16666/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mcollina

mcollina commented Aug 22, 2018

Copy link
Copy Markdown
Member

Landed in 413a7e1

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mcollina mcollina closed this Aug 22, 2018
mcollina pushed a commit that referenced this pull request Aug 22, 2018
@antsmartian @mcollina
http: adding doc and debug for calling empty string on write function
413a7e1
PR-URL: #22118
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
targos pushed a commit that referenced this pull request Aug 24, 2018
@antsmartian @targos
http: adding doc and debug for calling empty string on write function
eba253e
PR-URL: #22118
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
targos pushed a commit that referenced this pull request Sep 3, 2018
@antsmartian @targos
http: adding doc and debug for calling empty string on write function
c07a065
PR-URL: #22118
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
@targos targos mentioned this pull request Sep 5, 2018
Release proposal: v10.10.0 #22716
Merged
@beevelop beevelop mentioned this pull request Sep 6, 2018
2018-09-06 Version 10.10.0 (Current) @targos beevelop/docker-android-nodejs#236
Closed
@beevelop beevelop mentioned this pull request Sep 6, 2018
2018-09-06 Version 10.10.0 (Current) @targos beevelop/docker-nodejs#221
Closed
@antsmartian
antsmartian deleted the 22066 branch October 17, 2018 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Trott Trott Trott approved these changes
@mcollina mcollina mcollina approved these changes
@jasnell jasnell jasnell approved these changes
@trivikr trivikr trivikr approved these changes
+1 more reviewer
@vsemozhetbyt vsemozhetbyt vsemozhetbyt left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. http Issues and PRs related to the http subsystem.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@antsmartian @Trott @mcollina @jasnell @joyeecheung @vsemozhetbyt @trivikr @nodejs-github-bot
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.