Skip to content

Commit

Permalink
#69 - rename heartbeat_delay to server_heartbeat_interval
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed May 16, 2012
1 parent 85ee101 commit 06d00a2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Where `options` is a hash which can contain:
(miscellaneous logs), `info` (requests logs), `error` (serious
errors, consider filing an issue).</dd>

<dt>heartbeat_delay (milliseconds)</dt>
<dt>server_heartbeat_interval (milliseconds)</dt>
<dd>In order to keep proxies and load balancers from closing long
running http requests we need to pretend that the connecion is
active and send a heartbeat packet once in a while. This setting
Expand Down
1 change: 1 addition & 0 deletions src/chunking-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ exports.app =
origins : @options.origins,
cookie_needed : not not @options.jsessionid,
entropy : utils.random32(),
server_heartbeat_interval : @options.server_heartbeat_interval,
}
res.setHeader('Content-Type', 'application/json; charset=UTF-8')
res.writeHead(200)
Expand Down
2 changes: 1 addition & 1 deletion src/sockjs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ class Server extends events.EventEmitter
origins: ['*:*']
websocket: true
jsessionid: false
heartbeat_delay: 25000
disconnect_delay: 5000
server_heartbeat_interval: 25000
log: (severity, line) -> console.log(line)
sockjs_url: 'http://cdn.sockjs.org/sockjs-0.3.min.js'
if user_options
Expand Down
2 changes: 1 addition & 1 deletion src/transport.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ MAP = {}

class Session
constructor: (@session_id, server) ->
@server_heartbeat_interval = server.options.heartbeat_delay
@server_heartbeat_interval = server.options.server_heartbeat_interval
@disconnect_delay = server.options.disconnect_delay
@prefix = server.options.prefix
@send_buffer = []
Expand Down

0 comments on commit 06d00a2

Please sign in to comment.