This commit is contained in:
J. Nick Koston
2025-05-15 01:47:18 -05:00
parent 7b4e7108c0
commit 7b84eb2903

View File

@@ -94,6 +94,7 @@ APIError APIFrameHelper::write_raw_(const struct iovec *iov, int iovcnt) {
if (sent == -1) {
if (errno == EWOULDBLOCK || errno == EAGAIN) {
// Socket would block, we'll try again later
return APIError::OK; // Return early, buffer remains for next attempt
} else {
ESP_LOGVV(TAG, "%s: Socket write failed with errno %d", this->info_.c_str(), errno);
this->state_ = State::FAILED;