couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [8/19] git commit: Use adjacent even/odd ports for node-inspector and the v8 debugger
Date Mon, 11 Feb 2013 13:51:16 GMT
Use adjacent even/odd ports for node-inspector and the v8 debugger


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/44d4b5f1
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/44d4b5f1
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/44d4b5f1

Branch: refs/heads/nodejs_couchdb
Commit: 44d4b5f1ae2bb60fc9acc4d57b26e1dfd2b7e129
Parents: 41b895d
Author: Jason Smith (work) <jhs@iriscouch.com>
Authored: Thu Feb 7 08:29:17 2013 +0000
Committer: Jason Smith (work) <jhs@iriscouch.com>
Committed: Thu Feb 7 08:29:17 2013 +0000

----------------------------------------------------------------------
 src/couchdb/couch_query_servers.erl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/44d4b5f1/src/couchdb/couch_query_servers.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_query_servers.erl b/src/couchdb/couch_query_servers.erl
index 5a394b0..54bad8d 100644
--- a/src/couchdb/couch_query_servers.erl
+++ b/src/couchdb/couch_query_servers.erl
@@ -483,7 +483,7 @@ new_process(Langs, LangLimits, Lang) ->
         [{Lang, Mod, Func, Arg0}] ->
             {Arg, DebugPort} = case {Lang, Arg0} of
             {<<"javascript">>, [_OneElement]} ->
-                DbgPort = 5858 + random:uniform(1000),
+                DbgPort = 5858 + (random:uniform(500) * 2),
                 EnvOpt = {env, [{"COUCHJS_DEBUG_PORT", integer_to_list(DbgPort)}]},
                 AllArgs = Arg0 ++ [ [], [EnvOpt] ],
                 {AllArgs, DbgPort};


Mime
View raw message