We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf88db8 commit 76641d1Copy full SHA for 76641d1
libraries/Ethernet/Server.cpp
@@ -55,7 +55,8 @@ Client Server::available()
55
for (int sock = 0; sock < MAX_SOCK_NUM; sock++) {
56
Client client(sock);
57
if (EthernetClass::_server_port[sock] == _port &&
58
- client.status() == SnSR::ESTABLISHED) {
+ (client.status() == SnSR::ESTABLISHED ||
59
+ client.status() == SnSR::CLOSE_WAIT)) {
60
if (client.available()) {
61
// XXX: don't always pick the lowest numbered socket.
62
return client;
0 commit comments