镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

http2: implement ref() and unref() on client sessions  #16617

Description

@mcollina
  • Version: master, 8.8.1
  • Platform: all
  • Subsystem: http2

Currently the client sessions cannot be unref(), which means they will keep the process alive if they are not destroyed. Adding support for ref() and unref() (https://nodejs.org/api/net.html#net_socket_ref) would add the possibility to create some long-running clients for the life of the process.

Activity

  1. mcollina commented on Oct 30, 2017

    @mcollina
    SponsorMemberAuthor

    cc @nodejs/http2

  2. added
    http2Issues and PRs related to the http2 subsystem.
    on Oct 30, 2017
  3. addaleax commented on Oct 30, 2017

    @addaleax
    Member

    So … a question; right now, this effectively is about the ref’edness of the uv_prepare_t that is used to send data at the beginning of an event loop iteration, and for the ref’edness of the underlying socket. Is that correct?

    For the former, I think the solution we should be aiming for is to only have the handle be active if there actually is data to send, and I’d be glad to look into that.

  4. jasnell commented on Jan 8, 2018

    @jasnell
    Member

    This has been done

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.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions