Does not retransmit StunClientTransaction-s over TCP.
This commit is contained in:
parent
17276fde15
commit
8a7f8c1eea
@ -253,6 +253,8 @@ class ConnectivityCheckClient
|
|||||||
|
|
||||||
tran.setApplicationData(candidatePair);
|
tran.setApplicationData(candidatePair);
|
||||||
|
|
||||||
|
if (isReliableTransport(candidatePair))
|
||||||
|
maxRetransmissions = 0;
|
||||||
logger.fine(
|
logger.fine(
|
||||||
"start check for " + candidatePair.toShortString() + " tid "
|
"start check for " + candidatePair.toShortString() + " tid "
|
||||||
+ tran);
|
+ tran);
|
||||||
@ -707,6 +709,20 @@ class ConnectivityCheckClient
|
|||||||
evt.getRemoteAddress());
|
evt.getRemoteAddress());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks whether the transport protocol used by <tt>pair</tt> is to be
|
||||||
|
* considered reliable for the purposes of <tt>ConnectivityCheckClient</tt>,
|
||||||
|
* that is, if client transactions need to be retransmitted or not.
|
||||||
|
* @param pair the pair to check.
|
||||||
|
* @return <tt>true</tt> iff the transport protocol of <tt>pair</tt> is
|
||||||
|
* to be considered reliable and retransmissions should be disabled for
|
||||||
|
* a client transaction for <tt>pair</tt>.
|
||||||
|
*/
|
||||||
|
private boolean isReliableTransport(CandidatePair pair)
|
||||||
|
{
|
||||||
|
return pair.getLocalCandidate().getTransport() == Transport.TCP;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* In case of a role conflict, changes the state of the agent and
|
* In case of a role conflict, changes the state of the agent and
|
||||||
* reschedules the check, in all other cases sets the corresponding peer
|
* reschedules the check, in all other cases sets the corresponding peer
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user