2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-08-03 16:07:00 +00:00
Files
confluent/confluent_client
Markus Hilger 550751d0ff Fix the file descriptor send retry in asynctlvdata
When sendmsg() reports EAGAIN, _sendmsg rescheduled itself with

  loop.add_reader(fd, _sendmsg, loop, fut, sock, fd)

which waits for the socket to become readable rather than writable, and
passes four of the six required arguments, so the callback raised
TypeError once it did fire.  Wait for writability and pass the message
and descriptors through.

Also skip the work in _recvmsg if the future was cancelled while waiting
for data, as _sendmsg already does, so a cancelled read does not end in
InvalidStateError from set_result.

This module is imported by the server as well, so both paths are reached
by the daemon whenever a descriptor is passed over the local socket.
2026-07-27 01:51:53 +02:00
..
2019-02-04 15:05:36 -05:00
2014-07-14 14:54:12 -04:00
2026-07-13 05:34:12 +02:00
2024-06-05 08:39:37 -04:00
2026-06-10 07:44:50 -04:00
2014-07-14 14:54:12 -04:00
2017-05-09 13:28:57 +08:00
2022-09-09 12:50:38 -04:00