Repository navigation
CHANGES:
API changes:
- Remove deprecated functions from the API (@talex5 #168).
This removesUring.peek(useUring.get_cqe_nonblockinginstead) and
Msghdr.create(useMsghdr.create_recv). The old function was not safe for Unix-domain
sockets. The sender's address is also now stored inside theMsghdr.tallocation, avoiding
problems with lifetimes.
Bug fixes:
-
Uring.wait: return on a signal received after a submission (@avsm #179).
Without a timeout, the first signal didn't interruptUring.wait, so a second
triggered an assertion failure. It now returnsNoneif no completion is queued. -
Clamp I/O lengths to what the SQE's 32-bit field can hold (@avsm @talex5 #171).
Negative lengths are now rejected withInvalid_argument,
andfsyncsyncs the whole file if the length is out-of-range. -
Handle failing operations better (@avsm @talex5 #170).
set_fixed_bufferonly registers the buffer once the kernel has accepted it,
so a retry afterError ENOMEMno longer fails withENXIO.
acceptnow leaves theSockaddr.tuntouched if the submission queue is full. -
Reset the
Msghdr.tbuffer sizes on everyrecv_msg, so that aMsghdr.t
can be reused (@avsm @talex5 #175). -
Reject paths containing NUL bytes instead of truncating them (@avsm @talex5 #172).
-
Reject more than
iov_maxbuffers before queuing anything (@avsm @talex5 #173). -
Align sketch allocations to 8 bytes on 32-bit platforms too (@avsm @talex5 #181).
Build and tests: