1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 23:56:13 +01:00

Ethernet: Reject additonal connection instead of looping on OVERFLOW

This commit is contained in:
Harald Barth 2024-11-02 21:25:21 +01:00
parent 5efe385f2e
commit e131a9cce8

View File

@ -144,7 +144,9 @@ void EthernetInterface::acceptClient() { // STM32 version
return;
}
}
DIAG(F("Ethernet OVERFLOW"));
// reached here only if more than MAX_SOCK_NUM clients want to connect
DIAG(F("Ethernet more than %d clients, not accepting new connection"), MAX_SOCK_NUM);
client.stop();
}
#else
void EthernetInterface::acceptClient() { // non-STM32 version