Skip to content

Cannot read property 'asyncReset' of null #13539

Closed
@zkd8907

Description

@zkd8907
  • Version: 8.0.0
  • Platform: Linux x64

We deployed Node 8.0 on our servers, but found an error when a large number of concurrent requests came.

Stack:

TypeError: Cannot read property 'asyncReset' of null
    at Agent.addRequest (_http_agent.js:170:19)
    at new ClientRequest (_http_client.js:271:16)
    at Object.request (http.js:39:10)

I checked the source file _http_agent.js. Line 170 is socket._handle.asyncReset();. I think it's better to check whehter socket._handle is null before use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    async_hooksIssues and PRs related to the async hooks subsystem.httpIssues or PRs related to the http subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions