Skip to content

Commit

Permalink
Change asynchronous-timeout time and counter.
Browse files Browse the repository at this point in the history
(Issue #15)
  • Loading branch information
kiwanami committed Aug 4, 2013
1 parent e776c45 commit c0a4a50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions epc.el
Expand Up @@ -83,7 +83,8 @@
(defun epc:uid ()
(incf epc:uid))

(defvar epc:accept-process-timeout 100 "[internal] msec")
(defvar epc:accept-process-timeout 150 "Asynchronous timeout time. (msec)")
(defvar epc:accept-process-timeout-count 100 " Startup function waits (`epc:accept-process-timeout' * `epc:accept-process-timeout-count') msec for the external process getting ready.")


(defstruct epc:connection
Expand Down Expand Up @@ -402,7 +403,7 @@ to see full traceback:\n%s" port-str))
(setq cont nil))
(t
(incf cont)
(when (< 30 cont) ; timeout 3 seconds
(when (< epc:accept-process-timeout-count cont) ; timeout 15 seconds
(error "Timeout server response."))))))
(set-process-query-on-exit-flag process nil)
(make-epc:manager :server-process process
Expand Down

0 comments on commit c0a4a50

Please sign in to comment.