Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

getAgent() no longer available. #6

Merged
merged 1 commit into from

2 participants

@scunningham

Bring up to date with node 6.x API.

@wezm wezm merged commit c60e967 into wezm:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 22, 2012
  1. @scunningham
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/db.coffee
View
4 src/db.coffee
@@ -17,9 +17,7 @@ class DB
args
open: (@host = 'localhost', @port = 1978) ->
- # This is a bit of a hack... in order to use the 0.4 http API
- agent = http.getAgent(@host, @port)
- agent.maxSockets = 1
+ http.globalAgent.maxSockets = 1;
@rpcClient = new RpcClient(@port, @host)
@restClient = new RestClient(@port, @host)
Something went wrong with that request. Please try again.