Skip to content

http: check callback type of imcoming timeout - #3618

Closed
aks- wants to merge 1 commit into
nodejs:masterfrom
aks-:check-callback-type-incoming-timeout
Closed

http: check callback type of imcoming timeout#3618
aks- wants to merge 1 commit into
nodejs:masterfrom
aks-:check-callback-type-incoming-timeout

Conversation

@aks-

@aks-aks- commented Oct 31, 2015

Copy link
Copy Markdown
Member

No description provided.

@aks-

aks- commented Oct 31, 2015

Copy link
Copy Markdown
MemberAuthor

cc @nodejs/http

@dougwilson

Copy link
Copy Markdown
Member

👎 , protection already exists in EventEmitter.prototype.addListener.

@aks-

aks- commented Oct 31, 2015

Copy link
Copy Markdown
MemberAuthor

@dougwilson Oho I see. Well then should we have this check here https://github.com/nodejs/node/blob/master/lib/_http_outgoing.js#L93-L97

@dougwilson

Copy link
Copy Markdown
Member

Unsure. Was added in PR #3090 , which can help us decide.

@mscdexmscdex added the http Issues or PRs related to the http subsystem. label Nov 1, 2015
@MylesBorins

Copy link
Copy Markdown
Contributor

Dupe of #3539

@aredridel

Copy link
Copy Markdown
Contributor

Kind of a dupe, anyway. That other PR covers other cases.

Comment threadlib/_http_incoming.js

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

should be strict check IMO

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Preferred, yes. Although, typeof only ever returns strings.

Fishrock123 pushed a commit that referenced this pull request Nov 5, 2015
- This check is already covered in EventEmitter#addListener()
Refs: #3618
PR-URL: #3631
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
@Fishrock123

Copy link
Copy Markdown
Contributor

Replacement landed in 8625a38

rvagg pushed a commit that referenced this pull request Nov 7, 2015
- This check is already covered in EventEmitter#addListener()
Refs: #3618
PR-URL: #3631
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

httpIssues or PRs related to the http subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@aks-@dougwilson@MylesBorins@aredridel@Fishrock123@YurySolovyov@mscdex