File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -168,11 +168,16 @@ func (dialer *reconnectingDialer) sendHello(impl *reconnectingImpl) error {
168168 if ! result .Success {
169169 return errors .New (result .Message )
170170 }
171- impl .connectionId = string (response .Headers [ConnectionIdHeader ])
172-
173- if id , ok := response .GetStringHeader (IdHeader ); ok {
174- impl .id = & identity.TokenId {Token : id }
171+ if impl .connectionId == "" {
172+ if id , ok := response .GetStringHeader (IdHeader ); ok {
173+ impl .id = & identity.TokenId {Token : id }
174+ }
175+ } else {
176+ if id , ok := response .GetStringHeader (IdHeader ); ok && id != impl .id .Token {
177+ log .Warnf ("reconnected underlay has different id [%s] than expected [%s]" , id , impl .id .Token )
178+ }
175179 }
180+ impl .connectionId = string (response .Headers [ConnectionIdHeader ])
176181
177182 impl .headers .Store (response .Headers )
178183
You can’t perform that action at this time.
0 commit comments