mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-02 03:09:23 +00:00
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:
parent
6d157983ca
commit
44c66449c5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue