summaryrefslogtreecommitdiff
path: root/src/transport.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport.lisp')
-rw-r--r--src/transport.lisp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/transport.lisp b/src/transport.lisp
index 52d0dcf..bcdf3bc 100644
--- a/src/transport.lisp
+++ b/src/transport.lisp
@@ -26,15 +26,10 @@
26 ;; This is needed to avoid hangs, 26 ;; This is needed to avoid hangs,
27 ;; see https://github.com/fukamachi/dexador/issues/91#issuecomment-1093472364 27 ;; see https://github.com/fukamachi/dexador/issues/91#issuecomment-1093472364
28 (cl+ssl:*default-unwrap-stream-p* nil)) 28 (cl+ssl:*default-unwrap-stream-p* nil))
29 (handler-case (dex:request uri :method method :content content :read-timeout 60 :connect-timeout 60) 29 (handler-bind ((dex:http-request-too-many-requests #'dex:ignore-and-continue)
30 ;; We deal with too many requests manually 30 (dex:http-request-failed retrier)
31 (dex:http-request-too-many-requests (e) (dex:ignore-and-continue e)) 31 (cl+ssl::ssl-error retrier))
32 (dex:http-request-failed (e) 32 (dex:request uri :method method :content content :read-timeout 60 :connect-timeout 60))))
33 (log:warn "HTTP request failed: ~A" e)
34 (funcall retrier e))
35 (cl+ssl::ssl-error (e)
36 (log:warn "SSL error: ~A" e)
37 (funcall retrier e)))))
38 33
39;; TODO: (alist string t) 34;; TODO: (alist string t)
40(-> do-call% (http-method string t list) t) 35(-> do-call% (http-method string t list) t)