Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix various bugs with connection pool handling #8

Merged
merged 1 commit into from Apr 18, 2014

Conversation

mgorven
Copy link

@mgorven mgorven commented Apr 18, 2014

  • Adding requests to the queue used wrong parameters.
  • onCloseOrRemove() didn't remove sockets from the pool.
  • When using TLS, the pool contained the underlying connection instead
    of the TLS wrapped connection, causing connections to never be
    removed.
  • When a connection was closed and removeSocket() created a new socket
    to process requests in the queue, the event handlers were not attached
    to the new socket, causing the new socket to not be removed from the
    pool when it closed.

* Adding requests to the queue used wrong parameters.
* onCloseOrRemove() didn't remove sockets from the pool.
* When using TLS, the pool contained the underlying connection instead
  of the TLS wrapped connection, causing connections to never be
  removed.
* When a connection was closed and removeSocket() created a new socket
  to process requests in the queue, the event handlers were not attached
  to the new socket, causing the new socket to not be removed from the
  pool when it closed.
mikeal added a commit that referenced this pull request Apr 18, 2014
Fix various bugs with connection pool handling
@mikeal mikeal merged commit 912a7a6 into request:master Apr 18, 2014
@hashar
Copy link

hashar commented Dec 22, 2017

That is the cause of https://bugs.debian.org/801897 npm 1.4.21 on Debian Jessie is unable to use a proxy.

wmfgerrit pushed a commit to wikimedia/integration-zuul-config that referenced this pull request Dec 22, 2017
npm 1.4.21 from Jessie fails when used behind a proxy:
 TypeError: Request path contains unescaped characters
     at new ClientRequest (_http_client.js:52:11)
     at TunnelingAgent.exports.request (http.js:31:10)
     at TunnelingAgent.createSocket (/usr/lib/nodejs/tunnel-agent/index.js:117:25)

That prevent us from bootstrapping npm with:
 "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "npm@3.8.3"

I have jumped into that rabbit hole previously, basically the npm
version in Jessie does not support HTTP proxy.

Reference:
https://bugs.debian.org/801897 (has patches)
Got fixed in April 2014 via:
request/tunnel-agent#8

This reverts commit 2221c42.

Bug: T177276
Change-Id: Ia18f22f8a081bb9d13eb67d14067161259014744
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants