Skip to content

Commit

Permalink
rm unix_paths
Browse files Browse the repository at this point in the history
  • Loading branch information
nateberkopec committed Sep 26, 2019
1 parent 56a67be commit 58e4c69
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/puma/binder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def initialize(events)
@bindings = []
@inherited_fds = {}
@activated_sockets = {}
@unix_paths = []

@proto_env = {
"rack.version".freeze => RACK_VERSION,
Expand Down Expand Up @@ -398,8 +397,6 @@ def inherit_ssl_listener(fd, ctx)
# Tell the server to listen on +path+ as a UNIX domain socket.
#
def add_unix_listener(path, umask=nil, mode=nil, backlog=1024)
@unix_paths << path

# Let anyone connect by default
umask ||= 0

Expand Down Expand Up @@ -436,8 +433,6 @@ def add_unix_listener(path, umask=nil, mode=nil, backlog=1024)
end

def inherit_unix_listener(path, fd)
@unix_paths << path

if fd.kind_of? TCPServer
s = fd
else
Expand All @@ -461,7 +456,7 @@ def close_listeners
end

def close_unix_paths
@unix_paths.each { |up| File.unlink(up) if File.exist? up }
binders.select(&:unix?).each { |b| File.unlink(b.path) if File.exist?(b.path) }
end

def redirects_for_restart
Expand Down

0 comments on commit 58e4c69

Please sign in to comment.