diff options
author | Eric Wong <e@80x24.org> | 2017-04-08 22:48:44 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-04-08 22:48:44 +0000 |
commit | cb1337800dfaeaa0134e8c2a40815fd9174bf55a (patch) | |
tree | 9a7f5184ed77b82f0dc8dff7124b1b73c5c05e36 /lib/unicorn/http_server.rb | |
parent | 288b97bff81b13beba848602929d9254b3b4b150 (diff) | |
download | unicorn-cb1337800dfaeaa0134e8c2a40815fd9174bf55a.tar.gz |
These three cold call sites instruction sequence size by a few hundred bytes combined since we no longer support Ruby 1.8.6. The "?/" shorthand is esoteric and no longer avoids allocation in Ruby 1.9+ (not that this is hot code).
Diffstat (limited to 'lib/unicorn/http_server.rb')
-rw-r--r-- | lib/unicorn/http_server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index 3827f2e..f33aa25 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -148,7 +148,7 @@ class Unicorn::HttpServer def listeners=(listeners) cur_names, dead_names = [], [] listener_names.each do |name| - if ?/ == name[0] + if name.start_with?('/') # mark unlinked sockets as dead so we can rebind them (File.socket?(name) ? cur_names : dead_names) << name else |