github-actions[bot] opened a new pull request, #71609:
URL: https://github.com/apache/airflow/pull/71609

   Stream sockets are not required to return the full requested count from
   recv(), but the 4-byte length prefix on the supervisor↔subprocess socket
   was read with a single sock.recv(4). On a short read, the parsed length
   is garbage, which either raises msgspec.DecodeError in the subprocess or
   silently deadlocks the supervisor's selector reader (length_needed=0
   makes the falsy payload check skip forever, so no frame is ever
   dispatched to handle_requests).
   
   Accumulate the header bytes on both sides, mirroring the payload
   accumulation that was already correct. Add regression tests using a
   socket that returns 2 bytes at a time to reliably reproduce the short
   read.
   (cherry picked from commit f72e6c9befa7494467fbc8ceb883148dd9cb61ec)
   
   Co-authored-by: Andrew Chang <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to