Navigation Menu

Skip to content

Commit

Permalink
Always forward messages to internal port.
Browse files Browse the repository at this point in the history
For graceful shutdown/restart, messages in progress must be processed by the original (old) process.
Othwrwise, the number of pending sessions in the old process increases and the new process receives orphan results.
  • Loading branch information
piroor committed Apr 2, 2015
1 parent fdce0f6 commit 2d1abf6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/droonga/engine_state.rb
Expand Up @@ -68,12 +68,7 @@ def local_route?(route)

def farm_path(route)
if /\A[^:]+:\d+\/[^.]+/ =~ route
name = $MATCH
if name == @internal_name
@name
else
name
end
$MATCH
else
route
end
Expand Down

0 comments on commit 2d1abf6

Please sign in to comment.