Skip to content

Commit b651d62

Browse files
committed
Force a disconnect after fork
The previous call to `quit` lead to the weird situation that redis-rb will detect the fork, will reconnect by itself, will then send `QUIT` to the server and will disconnect afterwards. A bit too much trouble for a little disconnect.
1 parent c48d9d1 commit b651d62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/unicorn/unicorn.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
# worker processes.
1717

1818
after_fork do |server, worker|
19-
Redis.current.quit
19+
Redis.current.disconnect!
2020
end

0 commit comments

Comments
 (0)