Skip to content

Commit 0d170d4

Browse files
committed
Change event loop invalid socket failure to warning (since it's not usually a failure)
1 parent c736ae2 commit 0d170d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/ev.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,15 @@ namespace Event{
154154
std::set<int> toErase;
155155
for (auto & S : recvSockets) {
156156
if (S.first < 1024 && fcntl(S.first, F_GETFD) < 0) {
157-
FAIL_MSG("File descriptor %d (returning %zu) became invalid; removing from list", S.first, S.second.retVal);
157+
WARN_MSG("File descriptor %d (returning %zu) became invalid; removing from list", S.first, S.second.retVal);
158158
toErase.insert(S.first);
159159
}
160160
}
161161
for (auto & i : toErase) { recvSockets.erase(i); }
162162
toErase.clear();
163163
for (auto & S : sendSockets) {
164164
if (S.first < 1024 && fcntl(S.first, F_GETFD) < 0) {
165-
FAIL_MSG("File descriptor %d (returning %zu) became invalid; removing from list", S.first, S.second.retVal);
165+
WARN_MSG("File descriptor %d (returning %zu) became invalid; removing from list", S.first, S.second.retVal);
166166
toErase.insert(S.first);
167167
}
168168
}

0 commit comments

Comments
 (0)