summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-02 13:30:58 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-02 13:30:58 -0700
commitcc6ffaf42307ab3bd072c58bd492fb5c5204e687 (patch)
treedf45731a05440e78ac40fdf543a264d4d06bd5da
parent66e9f47ee861ed69c57fc110a6d5b3d28f5e373a (diff)
TCP ports are always integers, and it was always allowing a
randomly-generated value of 8080 through in the unused_port
method of test_helper.
-rw-r--r--lib/unicorn/const.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/const.rb b/lib/unicorn/const.rb
index bb33abb..e75effc 100644
--- a/lib/unicorn/const.rb
+++ b/lib/unicorn/const.rb
@@ -10,7 +10,7 @@ module Unicorn
     UNICORN_VERSION="0.92.0"
 
     DEFAULT_HOST = "0.0.0.0" # default TCP listen host address
-    DEFAULT_PORT = "8080"    # default TCP listen port
+    DEFAULT_PORT = 8080      # default TCP listen port
     DEFAULT_LISTEN = "#{DEFAULT_HOST}:#{DEFAULT_PORT}"
 
     # The basic max request size we'll try to read.