This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [Host/ConnectionFileDescriptor] Do not use non-blocking mode
ClosedPublic

Authored by mgorny on Oct 25 2021, 5:38 AM.

Details

Summary

Disable non-blocking mode that's enabled only for file:// and serial://
protocols. We do not seem to have a really good reason for it, and it
only complicates handling partial writes.

Diff Detail

Event Timeline

mgorny requested review of this revision.Oct 25 2021, 5:38 AM
mgorny created this revision.
labath accepted this revision.Oct 25 2021, 6:38 AM

All read should be going through the select(2) in ConnectionFileDescriptor::BytesAvaliable, which effectively erases (non-)blocking mode differences in reading. And we do want to perform writes in blocking mode.

This revision is now accepted and ready to land.Oct 25 2021, 6:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 25 2021, 7:24 AM