Skip to content

Commit

Permalink
Pass all arguments to UNIXEndpoint#bind through to super.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Feb 20, 2025
1 parent 670f148 commit 308c97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/io/endpoint/unix_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def bound?
return false
end

def bind(&block)
def bind(...)
super
rescue Errno::EADDRINUSE
# If you encounter EADDRINUSE from `bind()`, you can check if the socket is actually accepting connections by attempting to `connect()` to it. If the socket is still bound by an active process, the connection will succeed. Otherwise, it should be safe to `unlink()` the path and try again.
Expand Down

0 comments on commit 308c97b

Please sign in to comment.