 
   run: (callback) ->
     req = @newHttpRequest()
-    req.timeout = 3000
+    req.timeout = PERIDOT_HTTP_TIMEOUT
     req.onreadystatechange = ->
       callback?(not req.errorFlag) if req.readyState == req.DONE
     req.open("POST", "http://#{SERVER_HOST}/start")


  test: (callback) ->
    req = @newHttpRequest()
    req.timeout = 3000
    req.onreadystatechange = ->
      switch req.readyState
        when req.DONE


  stop: (callback) ->
    req = @newHttpRequest()
    req.timeout = PERIDOT_HTTP_TIMEOUT
    req.onreadystatechange = ->
      callback?(not req.errorFlag) if req.readyState == req.DONE
    req.open("POST", "http://#{SERVER_HOST}/stop")
