Skip to content

Commit

Permalink
fix: socat 起動時にソケットファイルが存在していても異常終了しないようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
lobin-z0x50 committed Aug 16, 2024
1 parent 61dedf7 commit 5e5da73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/lib/socat_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def _build_socat_listen(unix_socket_path, *options)
cmd = ["UNIX-LISTEN:#{unix_socket_path}"]
cmd << 'fork'
cmd << 'user=www-data'
cmd << 'unlink-early' # すでにソケットファイルが存在したら削除する
cmd << "backlog=#{self.class.get_so_max_conn}"
max_children = ENV['SOCAT_MAX_CHILDREN']
if max_children
Expand Down

0 comments on commit 5e5da73

Please sign in to comment.