So sorry for the delay on the followup.
You are correct, the NULL interface isn’t respecting the value. Shame on my code inconsistencies.
You can change the code here
void FOnlineSessionNull::OnValidResponsePacketReceived(uint8* PacketData, int32 PacketLength)
// Add space in the search results array
FOnlineSessionSearchResult* NewResult = new (CurrentSessionSearch->SearchResults) FOnlineSessionSearchResult();
To make it check the max search results and stop adding new results.
This code waits N seconds for broadcast packets from other LAN servers before returning all server responses. The NULL interfaces is more of a mocking/testing interface. Each server broadcasts its presence and therefore we don’t have a good filtering system in place for it.
The server could filter based on the request, or the client could filter based on the response. I’ll make a ticket to address this, but I can’t guarantee a timeline for it.