Skip to content

Commit

Permalink
Add abnormal closure option.
Browse files Browse the repository at this point in the history
  • Loading branch information
howbazaar committed Feb 26, 2017
1 parent 043d6b7 commit ae46366
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpc/jsoncodec/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ func (conn *wsJSONConn) Receive(msg interface{}) error {
if websocket.IsCloseError(err,
websocket.CloseNormalClosure,
websocket.CloseGoingAway,
websocket.CloseNoStatusReceived) {
websocket.CloseNoStatusReceived,
websocket.CloseAbnormalClosure) {
err = errors.Wrap(err, io.EOF)
}
}
Expand Down

0 comments on commit ae46366

Please sign in to comment.