You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
CrossConnectionTest.cpp tests connecting two peers at the same time with the internet simulator running.
One of the test conditionals is a duplicate, whilst the accompanying text output indicates the intention was to test something different ("ID_NEW_INCOMING_CONNECTION is false for both instances")
This may have been caused by an errant copy-paste.
int main()
{
printf("An internal test to test two peers connecting to each other\n");
printf("at the same time. This causes bugs so I fix them here\n");
...
else if (gotConnectionRequestAccepted[0]==0 && gotConnectionRequestAccepted[1]==0)
{
printf("Test failed, ID_CONNECTION_REQUEST_ACCEPTED is false for both instances\n");
}
else if (gotNewIncomingConnection[0]==1 && gotNewIncomingConnection[1]==1)
{
printf("Test failed, ID_NEW_INCOMING_CONNECTION is true for both instances\n");
}
else if (gotConnectionRequestAccepted[0]==0 && gotConnectionRequestAccepted[1]==0)
{
// ** ISSUE HERE, DUPLICATES ABOVE CONDITIONAL **
printf("Test failed, ID_NEW_INCOMING_CONNECTION is false for both instances\n");
}
...
The text was updated successfully, but these errors were encountered:
Echelon9
added a commit
to Echelon9/RakNet
that referenced
this issue
Jul 10, 2014
CrossConnectionTest.cpp tests connecting two peers at the same time with the internet simulator running.
One of the test conditionals is a duplicate, whilst the accompanying text output indicates the intention was to test something different ("ID_NEW_INCOMING_CONNECTION is false for both instances")
This may have been caused by an errant copy-paste.
The text was updated successfully, but these errors were encountered: