Skip to content

Commit b27e922

Browse files
committed
add note about noBufferSpace error with IORing receiveMessages()
1 parent a85276b commit b27e922

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sources/SwiftOCADevice/OCP.1/Backend/IORing/Ocp1IORingDeviceEndpoint.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,7 @@ public class Ocp1IORingDatagramDeviceEndpoint: Ocp1IORingDeviceEndpoint,
307307
}
308308
}
309309
} catch let error as Errno {
310-
// TODO: why do we occasionally run out of buffers on recvmsg()? looking
311-
// at kernel code, it appears io_buffer_select() returns NULL (as there
312-
// are no datagram domain socket-specific paths that return ENOBUFS).
310+
// if the IORing has not being sized properly we may receive noBufferSpace
313311
guard error == Errno.canceled || error == Errno.noBufferSpace else { throw error }
314312
} catch {
315313
logger

0 commit comments

Comments
 (0)