Search Issue Tracker

Not Reproducible

Votes

0

Found in

5.4.0b15

Issue ID

788877

Regression

No

Runtime test UNetHandlesMaxConnectionsOverflow fails on different platforms

Networking

-

Different error-messages when setting 65535 and 65539 (both not allowed) to m_MaxDefaultConnections in HostTopology

How we can reproduce it
1 When you do
m_MaxConnections = 65535;
m_Topology = new HostTopology(m_Config, m_MaxConnections);
m_ServerId = NetworkTransport.AddHost(m_Topology, m_ListenPort);
it gives errors:
"Assertion failed on expression: 'connectionNum < 0xFFFF && connectionNum != 0'"
"Number of connections should be > 0 and < 65535"
-----
2 When you do
m_MaxConnections = 65537;
m_Topology = new HostTopology(m_Config, m_MaxConnections);
m_ServerId = NetworkTransport.AddHost(m_Topology, m_ListenPort);
it gives errors:
"count connection should be < 65535"
"Parameter name: maxDefaultConnections"

Expected result: the error-messages should be the same in both cases

addition:
on android and MacStandalone sometimes this message appears (see Case 789878):
"Number of connections should be > 0 and < 65535"

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.