Skip to content

http2: when is socket._paused set to true? #16213

Description

@trivikr

As part of improving code coverage for http2 in #14985, I wrote some unit tests for socket operations in #16211

I noticed that:

However, I didn't find any code which sets socket._paused to true https://github.com/nodejs/node/search?utf8=%E2%9C%93&q=_paused&type=
Is this a bug? Or is there a way to mock value of socket._paused while testing?

Activity

  1. added
    http2Issues and PRs related to the http2 subsystem.
    questionIssues asking questions about Node.js.
    on Oct 15, 2017
  2. apapirovski commented on Oct 15, 2017

    @apapirovski
    Contributor

    cc @jasnell — this seems like an incomplete implementation or a bug, any insight into what the original thinking was?

  3. trivikr commented on Oct 15, 2017

    @trivikr
    MemberAuthor

    For reference, initial commit which introduced _paused: nodejs/http2@4e47406

  4. trivikr commented on Oct 17, 2017

    @trivikr
    MemberAuthor

    This issue is likely to be irrelevant if socket operations are removed in #16252

  5. Fishrock123 commented on Oct 20, 2017

    @Fishrock123
    Contributor

    Isn't this part of the streams implementation?

  6. apapirovski commented on Oct 20, 2017

    @apapirovski
    Contributor

    @Fishrock123 as far as I can tell it's custom to _http_server.js

  7. trivikr commented on Oct 23, 2017

    @trivikr
    MemberAuthor

    The socketOn* methods are being removed in #16330
    This issue will cease to exist when the PR is merged.

  8. apapirovski commented on Oct 25, 2017

    @apapirovski
    Contributor

    We still have unused stream._paused but this issue isn't addressing that so I'm closing since the PR removing this just landed.

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

    http2Issues and PRs related to the http2 subsystem.questionIssues asking questions about Node.js.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions