Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,18 @@ else if (now - lastPingSndTime > pingInterval && lastPingRcvTime != Long.MAX_VAL

assert old == null;

GridNioFuture<?> sndFut = ses.send(msg);
GridNioFuture<?> sndFut;
if(sesTok == null && credentials() != null ) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reformat code according to codestyle.

fut.retryState(TcpClientFuture.STATE_AUTH_RETRY);

GridClientAuthenticationRequest req = buildAuthRequest();

req.requestId(reqId);

sndFut = ses.send(req);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see where you send "msg" in this branch. Is it ignored?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message is already pended in the original future (for which status is changing to STATE_AUTH_RETRY). So the message is not ignored but postponed.

} else {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reformat code according to codestyle.

sndFut = ses.send(msg);
}

lastMsgSndTime = System.currentTimeMillis();

Expand Down