Default ein:query-timeout is nil if curl is used

this is to address #114
This commit is contained in:
Takafumi Arakaki 2013-06-11 16:49:49 +02:00
parent ff622a6468
commit 7901e90db7
2 changed files with 7 additions and 1 deletions

View file

@ -564,6 +564,8 @@ Change Log
v0.2.1
------
* :el:symbol:`ein:query-timeout` is `nil` if `curl` backend is used
by request.el_.
* History search interface (:el:symbol:`helm-ein-kernel-history` and
:el:symbol:`anything-ein-kernel-history`) discards duplications.
This functionality requires at least version 4.0 of IPython kernel.

View file

@ -41,10 +41,14 @@
;;; Variables
(defcustom ein:query-timeout 1000
(defcustom ein:query-timeout
(if (eq request-backend 'url-retrieve) 1000 nil)
"Default query timeout for HTTP access in millisecond.
Setting this to `nil' means no timeout.
If you have ``curl`` command line program, it is automatically set to
`nil' as ``curl`` is reliable than `url-retrieve' therefore no need for
a workaround (see below).
If you do the same operation before the timeout, old operation
will be canceled \(see also `ein:query-singleton-ajax').