mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-02-17 06:29:15 +01:00
Ethernet: Reject additonal connection instead of looping on OVERFLOW
This commit is contained in:
parent
5efe385f2e
commit
e131a9cce8
@ -144,7 +144,9 @@ void EthernetInterface::acceptClient() { // STM32 version
|
|||||||
return;
|
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
|
#else
|
||||||
void EthernetInterface::acceptClient() { // non-STM32 version
|
void EthernetInterface::acceptClient() { // non-STM32 version
|
||||||
|
Loading…
Reference in New Issue
Block a user