Add logs when a pair check fails (received binding error response, non-symmetric response, ...).
This commit is contained in:
parent
518e661a82
commit
17e931572e
@ -225,7 +225,9 @@ class ConnectivityCheckClient
|
|||||||
if (!checkSymmetricAddresses(evt))
|
if (!checkSymmetricAddresses(evt))
|
||||||
{
|
{
|
||||||
logger.fine("Received a non-symmetric response for pair: "
|
logger.fine("Received a non-symmetric response for pair: "
|
||||||
+ checkedPair.toShortString() +". Failing");
|
+ checkedPair.toShortString() + ". Failing");
|
||||||
|
logger.info("non-symmetric response for pair: "
|
||||||
|
+ checkedPair.toShortString() + ", failing");
|
||||||
checkedPair.setStateFailed();
|
checkedPair.setStateFailed();
|
||||||
}
|
}
|
||||||
//handle error responses.
|
//handle error responses.
|
||||||
@ -335,7 +337,7 @@ class ConnectivityCheckClient
|
|||||||
if(! response.containsAttribute(Attribute.XOR_MAPPED_ADDRESS))
|
if(! response.containsAttribute(Attribute.XOR_MAPPED_ADDRESS))
|
||||||
{
|
{
|
||||||
logger.fine("Received a success response with no "
|
logger.fine("Received a success response with no "
|
||||||
+"XOR_MAPPED_ADDRESS attribute.");
|
+ "XOR_MAPPED_ADDRESS attribute.");
|
||||||
logger.info("Pair failed: " + checkedPair.toShortString());
|
logger.info("Pair failed: " + checkedPair.toShortString());
|
||||||
checkedPair.setStateFailed();
|
checkedPair.setStateFailed();
|
||||||
return; //malformed error response
|
return; //malformed error response
|
||||||
@ -571,6 +573,8 @@ class ConnectivityCheckClient
|
|||||||
logger.fine("Received an unrecoverable error response for pair "
|
logger.fine("Received an unrecoverable error response for pair "
|
||||||
+ pair.toShortString() +
|
+ pair.toShortString() +
|
||||||
" will mark the pair as FAILED.");
|
" will mark the pair as FAILED.");
|
||||||
|
logger.info("Error response for pair: " + pair.toShortString() +
|
||||||
|
", failing.");
|
||||||
pair.setStateFailed();
|
pair.setStateFailed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -587,7 +591,7 @@ class ConnectivityCheckClient
|
|||||||
{
|
{
|
||||||
CandidatePair pair = ((CandidatePair)event.getTransactionID()
|
CandidatePair pair = ((CandidatePair)event.getTransactionID()
|
||||||
.getApplicationData());
|
.getApplicationData());
|
||||||
logger.info("timeout for pair: " + pair.toShortString() +", failing.");
|
logger.info("timeout for pair: " + pair.toShortString() + ", failing.");
|
||||||
pair.setStateFailed();
|
pair.setStateFailed();
|
||||||
updateCheckListAndTimerStates(pair);
|
updateCheckListAndTimerStates(pair);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user