Skip to content
Discussion options

You must be logged in to vote

Oh, searching some more found #75 (comment) which highlights that ssl_context needs to be passed in. I would've expected it to "just work" with the inclusion of SelfSignedTls.

Here's a diff of my code that works:

diff --git a/falcon.rb b/falcon.rb
index bbf4b9a..8ea7a1a 100755
--- a/falcon.rb
+++ b/falcon.rb
@@ -18,7 +18,8 @@ service hostname do
   # If using count > 1 you may want to preload your app to reduce memory usage and increase performance:
   preload "preload.rb"

-  endpoint Async::HTTP::Endpoint
-    .parse("https://localhost:#{port}")
-    .with(protocol: Async::HTTP::Protocol::HTTP2)
+  endpoint do
+    # Note the use of `ssl_context` here:
+    Async::HTTP::Endpoint.parse("…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ioquatix
Comment options

Answer selected by ioquatix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #297 on June 16, 2025 08:52.