We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7fe8323 + 670ae8b commit 6249878Copy full SHA for 6249878
src/io.c
@@ -2288,10 +2288,10 @@ _dispatch_operation_perform(dispatch_operation_t op)
2288
return DISPATCH_OP_DELIVER;
2289
}
2290
error:
2291
- if (err == EAGAIN) {
+ if (err == EAGAIN || err == EWOULDBLOCK) {
2292
// For disk based files with blocking I/O we should never get EAGAIN
2293
dispatch_assert(!op->fd_entry->disk);
2294
- _dispatch_op_debug("performed: EAGAIN", op);
+ _dispatch_op_debug("performed: EAGAIN/EWOULDBLOCK", op);
2295
if (op->direction == DOP_DIR_READ && op->total &&
2296
op->channel == op->fd_entry->convenience_channel) {
2297
// Convenience read with available data completes on EAGAIN
0 commit comments