fix potential cspot on socket timeout & optimize HTTP server - release

This commit is contained in:
philippe44
2022-09-24 23:11:20 -07:00
parent f84e856e68
commit f2b0c40848
2 changed files with 36 additions and 34 deletions

View File

@@ -126,7 +126,7 @@ std::vector<uint8_t> PlainConnection::readBlock(size_t size)
break;
default:
if (retries++ > 4) throw std::runtime_error("Error in read");
goto READ;
}
}
idx += n;