1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-02-19 23:46:02 +01:00

Compare commits

..

No commits in common. "b62661c337f1586be09bb3e1043445b1a62c3b5e" and "c8c3697fa00fd468b0e19b89b46ae3f01ea9779e" have entirely different histories.

2 changed files with 20 additions and 16 deletions

View File

@ -215,16 +215,20 @@ void EthernetInterface::loop2() {
CommandDistributor::parse(socket,buffer,outboundRing);
looptimer(2000, F("Ethloop2 parse"));
return; // limit the amount of processing that takes place within 1 loop() cycle.
} else if (count == 0) {
// The client has disconnected
}
}
}
looptimer(8000, F("Ethloop2 after incoming"));
// stop any clients which disconnect
for (int socket = 0; socket<MAX_SOCK_NUM; socket++) {
if (clients[socket] && !clients[socket].connected()) {
clients[socket].stop();
CommandDistributor::forget(socket);
if (Diag::ETHERNET) DIAG(F("Ethernet: disconnect %d "), socket);
}
// fall through if count = -1 (no bytes available)
}
}
looptimer(8000, F("Ethloop2 after incoming"));
looptimer(8000, F("Ethloop after disconnectcheck"));
WiThrottle::loop(outboundRing);
looptimer(8000, F("Ethloop after Withrottleloop"));

View File

@ -1 +1 @@
#define GITHUB_SHA "devel-fozzie-202408172108Z"
#define GITHUB_SHA "devel-fozzie-202408091233Z"