GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Connections not cleaned up if disconnected mid-download? · Issue #523 · googleapis/google-cloud-node

Connections not cleaned up if disconnected mid-download?  #523

New issue
Copy link
New issue
Copy link
Closed
#636
Closed
Connections not cleaned up if disconnected mid-download? #523
#636
Copy link
Assignees
stephenplusplus
Labels
api: storageIssues related to the Cloud Storage API.
Milestone
Storage Stable

Description

@jgeewax
jgeewax
opened on May 4, 2015
Issue body actions

See #522 for the sample code.

In that example, if a client disconnects mid-way through a download, the connection apparently doesn't get cleaned up, and we're left with N-1 available connections in the pool.

Can we make sure that if a connection is broken, we clean up the socket and toss it ?

/cc @robertdimarco

Activity

Next
  1. jgeewax
    added
    enhancement
    perf
    api: storageIssues related to the Cloud Storage API.
    on May 4, 2015
  2. jgeewax
    added this to the Storage Stable milestone on May 4, 2015
  3. robertdimarco commented on May 4, 2015

    @robertdimarco
    robertdimarco
    on May 4, 2015
    Contributor
    More actions

    Thanks for filing these issues and resolving them so quickly! 👏

    This one is the trickiest of the bunch, and (in my view) doesn't have the clearest resolution. In the prior example on #522, without removing the connection limits, the issue is easily reproduced by having a client request a large file and hang-up part-way through that file.

    Our short-term resolution for this issue was (a) remove the Node v0.10 socket pooling limits, and (b) listen for the client hang-up / socket close, and try to invoke stream.abort() on the through-stream returned from this module. That last bit improves the situation, but appears to be error-prone and I think does not pass-through and call stream.destroy() on the stream returned from the request module.

    Happy to expand further or help out however we can.

  4. stephenplusplus
    closed this as completedin #636on Jun 5, 2015
  5. robertdimarco commented on Jun 5, 2015

    @robertdimarco
    robertdimarco
    on Jun 5, 2015
    Contributor
    More actions

    Thanks everyone for your help here. 👏 👏 👏

  6. JustinBeckwith
    assigned
    stephenplusplus
    on Feb 1, 2021
  7. chingor13
    added 3 commits that reference this issue on Aug 22, 2022

    chore: release 3.15.3 (#523)

    1142e38

    chore: release 3.15.3 (#523)

    c1d8508

    chore: release 3.15.3 (#523)

    654076c
  8. sofisl
    added 2 commits that reference this issue on Sep 15, 2022

    chore(deps): update dependency @types/node to v16 (#523)

    19a8403

    chore(deps): update dependency @types/mocha to v9 (#523)

    0a0265b
  9. sofisl
    added 2 commits that reference this issue on Oct 5, 2022

    chore(deps): update dependency @types/mocha to v9 (#523)

    27ee666

    chore(deps): update dependency @types/mocha to v9 (#523)

    1e9cde5
  10. 11 remaining items

  11. sofisl
    added a commit that references this issue on Nov 17, 2022

    chore: release 2.4.1 (#524)

    0d3d43b
  12. sofisl
    added a commit that references this issue on Jan 10, 2023

    build: --credential-file-override is no longer required (#523)

    bbaa1ce
  13. sofisl
    added a commit that references this issue on Sep 14, 2023

    fix(deps): update dependency @google-cloud/promisify to v3 (#523)

    307cda0
  14. miguelvelezsa
    added a commit that references this issue on Jul 23, 2025

    fix(docs): make anchors work in jsdoc (#523)

    14a5710
  15. miguelvelezsa
    added 2 commits that reference this issue on Jan 14, 2026

    chore: Add title back into Readme (#523)

    1654b3c

    chore: Add title back into Readme (#523)

    a7d3fcb
  16. sofisl
    added 6 commits that reference this issue on Jan 27, 2026

    fix(deps): use the latest extend (#523)

    ee95c57

    fix(deps): use the latest extend (#523)

    a261209

    fix(deps): use the latest extend (#523)

    9c955aa

    fix(deps): use the latest extend (#523)

    bfce0ab

    docs: update link to client docs (#523)

    5578cd2

    chore: Add title back into Readme (#523)

    a0c5824
  17. sofisl
    added 2 commits that reference this issue on Feb 24, 2026

    chore: update year in the license headers. (#523)

    0515a0c

    build: use linkinator for docs test (#523)

    fed0a31
  18. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    refactor: convert sample tests from ava to mocha (googleapis#523)

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

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

api: storageIssues related to the Cloud Storage API.

Type

No type

Projects

No projects

    Milestone

    • Storage Stable

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.