Skip to content

Commit

Permalink
transport(tcp): fix timeout check on blocking recv (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz authored Apr 12, 2024
1 parent d7d6b99 commit 709e479
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/transport/tcp/RecvSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,9 @@ void RecvSocket::recvOne(int conn, uint8_t* buffer, size_t bufferSize)
#ifdef FAABRIC_USE_SPINLOCK
if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) {
_mm_pause();
#else
if (errno == EAGAIN) {
#endif
continue;
}
#endif

SPDLOG_ERROR("TCP Server error receiving in {}: {}",
conn,
Expand Down

0 comments on commit 709e479

Please sign in to comment.