summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2026-02-08 15:02:52 +0200
committerGravatar Uko Kokņevičs2026-02-08 15:02:52 +0200
commit07ad5f350b4a53dac9260c1e0528fae1dd8647bb (patch)
tree4ecf4c1371bcd50b72e204d2813fad368b17c693
parentMake /msginfo be a restricted command (diff)
downloadukkoclot-07ad5f350b4a53dac9260c1e0528fae1dd8647bb.tar.gz
ukkoclot-07ad5f350b4a53dac9260c1e0528fae1dd8647bb.tar.xz
ukkoclot-07ad5f350b4a53dac9260c1e0528fae1dd8647bb.zip
Try to deal with Bad Gateway better
-rw-r--r--src/transport.lisp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/transport.lisp b/src/transport.lisp
index bcdf3bc..8523816 100644
--- a/src/transport.lisp
+++ b/src/transport.lisp
@@ -1,5 +1,5 @@
1;; SPDX-License-Identifier: EUPL-1.2 1;; SPDX-License-Identifier: EUPL-1.2
2;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> 2;; SPDX-FileCopyrightText: 2025-2026 Uko Kokņevičs <perkontevs@gmail.com>
3(defpackage :ukkoclot/src/transport 3(defpackage :ukkoclot/src/transport
4 (:documentation "Package dealing with HTTP calls.") 4 (:documentation "Package dealing with HTTP calls.")
5 (:use :c2cl) 5 (:use :c2cl)
@@ -26,9 +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-bind ((dex:http-request-too-many-requests #'dex:ignore-and-continue) 29 (handler-bind ((cl+ssl::ssl-error retrier)
30 (dex:http-request-bad-gateway retrier)
30 (dex:http-request-failed retrier) 31 (dex:http-request-failed retrier)
31 (cl+ssl::ssl-error retrier)) 32 (dex:http-request-too-many-requests #'dex:ignore-and-continue))
32 (dex:request uri :method method :content content :read-timeout 60 :connect-timeout 60)))) 33 (dex:request uri :method method :content content :read-timeout 60 :connect-timeout 60))))
33 34
34;; TODO: (alist string t) 35;; TODO: (alist string t)