File: concurrent-web-server-connection-refused.patch

package info (click to toggle)
guile-fibers 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 752 kB
  • sloc: lisp: 4,407; ansic: 497; makefile: 149; sh: 18
file content (18 lines) | stat: -rw-r--r-- 563 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From: Simon Josefsson <simon@josefsson.org>
Date: Tue, 18 Feb 2025 08:14:48 +0100
Subject: [PATCH] Attempt to fix "Connection refused" error
Forwarded: https://codeberg.org/fibers/fibers/issues/94

diff --git a/tests/concurrent-web-server.scm b/tests/concurrent-web-server.scm
index b6c4016..4a4ea20 100644
--- a/tests/concurrent-web-server.scm
+++ b/tests/concurrent-web-server.scm
@@ -72,6 +72,8 @@
  (lambda ()
    (run-server handler #:port 8080)))
 
+(sleep 5)
+
 (call-with-values
     (lambda ()
       (http-get (string->uri "http://127.0.0.1:8080/proc")