LibCore: Stop buffering when a zero-size slice is read regardless of EOF

The meaning of EOF depends on the underlying socket, but an empty slice
should terminate the buffering (otherwise we'd just spin forever).
This commit is contained in:
Ali Mohammad Pur 2022-02-02 19:09:05 +03:30 committed by Andreas Kling
commit 7a95c451a3
Notes: sideshowbarker 2024-07-17 19:43:46 +09:00

View file

@ -664,6 +664,9 @@ public:
if (populated_slice.contains_slow('\n'))
return true;
if (populated_slice.is_empty())
break;
}
return false;