Skip to content

Cannot read property 'asyncReset' of null #13539

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    async_hooksIssues and PRs related to the async hooks subsystem.httpIssues and 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