Skip to content

Commit

Permalink
Use 1012 service restart ws close code when draining
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Jun 15, 2023
1 parent 9dd4689 commit 295eae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix/socket.ex
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ defmodule Phoenix.Socket do
end

def __info__(:socket_drain, state) do
{:stop, {:shutdown, :draining}, state}
{:stop, {:shutdown, :draining}, {1012, 'restart'}, state}
end

def __info__({:socket_push, opcode, payload}, state) do
Expand Down

0 comments on commit 295eae3

Please # to comment.