Remove useless test overhead and speed discovering process

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@96 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
aymeric 2008-10-16 16:27:48 +00:00
parent 6d157983ca
commit 44c66449c5

View file

@ -2146,7 +2146,7 @@ stunNatType( StunAddress4 *dest,
second_started = stunGetSystemTimeSecs();
second_elapsed = 1;
while ( count < 7 && second_elapsed < 5)
while ( count < 3 && second_elapsed < 5)
{
struct timeval tv;
fd_set fdSet;
@ -2186,7 +2186,6 @@ stunNatType( StunAddress4 *dest,
{
/* timeout occured */
count++;
if ( !respTestI )
{
stunSendTest( myFd1, dest, &username, &password, 1 ,verbose );
@ -2220,6 +2219,7 @@ stunNatType( StunAddress4 *dest,
stunSendTest( myFd1, &testImappedAddr, &username, &password, 11 ,verbose );
}
}
}
else
{