-
Is it possible to bind to a unix socket? I have this #!/usr/bin/env -S falcon host
# frozen_string_literal: true
# Force to always use threads instead of processes/forks
module Falcon
module Command
class Host
def container_class
Async::Container::Threaded
end
end
end
end
load :rack
hostname = File.basename(__dir__)
rack hostname do
endpoint Async::HTTP::Endpoint.parse('http://localhost:3000').with(protocol: Async::HTTP::Protocol::HTTP1)
end I tried ... endpoint Async::HTTP::Endpoint.parse('unix://./tmp_something').with(protocol: Async::HTTP::Protocol::HTTP1) ... but I get:
Is there a way to bind to a socket? |
Beta Was this translation helpful? Give feedback.
Answered by
ioquatix
Jun 16, 2021
Replies: 1 comment 5 replies
-
Yes, that's the default: falcon/lib/falcon/environments/application.rb Lines 51 to 63 in 4211499 |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
doits
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, that's the default:
falcon/lib/falcon/environments/application.rb
Lines 51 to 63 in 4211499