add additional options for browserchannel reconnect behaviour
This commit is contained in:
parent
13f76350bd
commit
7e2e97f172
|
@ -154,7 +154,9 @@
|
||||||
(.setAllowHostPrefix (boolean (:allow-host-prefix? options)))
|
(.setAllowHostPrefix (boolean (:allow-host-prefix? options)))
|
||||||
(.setFailFast (boolean (:fail-fast? options)))
|
(.setFailFast (boolean (:fail-fast? options)))
|
||||||
(.setForwardChannelMaxRetries (:max-forward-channel-retries options))
|
(.setForwardChannelMaxRetries (:max-forward-channel-retries options))
|
||||||
(.setForwardChannelRequestTimeout (:forward-channel-request-timeout options)))
|
(.setForwardChannelRequestTimeout (:forward-channel-request-timeout options))
|
||||||
|
(.setRetryDelay (:base-connect-retry-delay options)
|
||||||
|
(:connect-retry-delay-seed options)))
|
||||||
;; HACK: this is relying on changing a value for a setting that google's
|
;; HACK: this is relying on changing a value for a setting that google's
|
||||||
;; documentation lists as private. however, it is a fairly important
|
;; documentation lists as private. however, it is a fairly important
|
||||||
;; setting to be able to change, so i think it's worth the risk...
|
;; setting to be able to change, so i think it's worth the risk...
|
||||||
|
@ -267,6 +269,16 @@
|
||||||
;; sets the timeout (in milliseconds) for a forward channel request
|
;; sets the timeout (in milliseconds) for a forward channel request
|
||||||
:forward-channel-request-timeout (* 20 1000)
|
:forward-channel-request-timeout (* 20 1000)
|
||||||
|
|
||||||
|
; base time delay for another connection attempt is made. note
|
||||||
|
; that a random time between 0 and :connect-retry-delay-seed is
|
||||||
|
; added to this value to determine the final reconnect delay time.
|
||||||
|
; time is in milliseconds
|
||||||
|
:base-connect-retry-delay (* 5 1000)
|
||||||
|
|
||||||
|
; see description of :base-connect-retry-delay. time is in
|
||||||
|
; milliseconds
|
||||||
|
:connect-retry-delay-seed (* 10 1000)
|
||||||
|
|
||||||
;; whether to enable somewhat verbose debug logging
|
;; whether to enable somewhat verbose debug logging
|
||||||
:verbose-logging? false
|
:verbose-logging? false
|
||||||
|
|
||||||
|
|
Reference in a new issue