serenity/AK
Jelle Raaijmakers 9240233378 Revert "AK: Refill a BufferedStream when it has less than the
...requested size"

This reverts commit 13573a6c4b.

Some clients of `BufferedStream` expect a non-blocking read by
`read_some` which the commit above made impossible by potentially
performing a blocking read. For example, the following command hangs:

    pro http://ipecho.net/plain

This is caused by the HTTP job expecting to read the body of the
response which is included in the active buffer, but since the buffered
data size is less than the buffer passed into `read_some`, another
blocking read is performed before anything is returned.

By reverting this commit, all tests still pass and `pro` no longer
hangs. Note that because of another bug related to `stdout` / `stderr`
mixing and the absence of a line ending, there is no output to the
command above except a progress update.
2023-09-11 21:38:24 -04:00
..
.clang-tidy
AllOf.h
AnyOf.h
ArbitrarySizedEnum.h
Array.h
Assertions.cpp
Assertions.h
Atomic.h
AtomicRefCounted.h
Badge.h
Base64.cpp
Base64.h
BigIntBase.h
BinaryBufferWriter.h
BinaryHeap.h
BinarySearch.h
BitCast.h
Bitmap.h
BitmapView.h
BitStream.h
BufferedStream.h Revert "AK: Refill a BufferedStream when it has less than the 2023-09-11 21:38:24 -04:00
BuiltinWrappers.h
BumpAllocator.h
ByteBuffer.h
ByteReader.h
CharacterTypes.h
Checked.h
CheckedFormatString.h
CircularBuffer.cpp
CircularBuffer.h
CircularDeque.h
CircularQueue.h
CMakeLists.txt
Complex.h
Concepts.h
ConstrainedStream.cpp
ConstrainedStream.h
CountingStream.cpp
CountingStream.h
DateConstants.h
Debug.h.in
DefaultDelete.h
Demangle.h
DeprecatedFlyString.cpp
DeprecatedFlyString.h
DeprecatedString.cpp
DeprecatedString.h
Diagnostics.h
DisjointChunks.h
DistinctNumeric.h
DOSPackedTime.cpp
DOSPackedTime.h
DoublyLinkedList.h
Endian.h
EnumBits.h
Error.cpp
Error.h
ExtraMathConstants.h
Find.h
FixedArray.h
FixedPoint.h
FixedStringBuffer.h
FloatingPoint.h
FloatingPointStringConversions.cpp
FloatingPointStringConversions.h
FlyString.cpp
FlyString.h
Format.cpp
Format.h
Forward.h
FPControl.h
Function.h
FuzzyMatch.cpp
FuzzyMatch.h
GenericLexer.cpp
GenericLexer.h
GenericShorthands.h
HashFunctions.h
HashMap.h
HashTable.h
Hex.cpp
Hex.h
IDAllocator.h
InsertionSort.h
IntegralMath.h
IntrusiveDetails.h
IntrusiveList.h
IntrusiveListRelaxedConst.h
IntrusiveRedBlackTree.h
IPv4Address.h
IPv6Address.h
IterationDecision.h
Iterator.h
JsonArray.h
JsonArraySerializer.h
JsonObject.cpp
JsonObject.h
JsonObjectSerializer.h
JsonParser.cpp
JsonParser.h
JsonPath.cpp
JsonPath.h
JsonValue.cpp
JsonValue.h
kmalloc.cpp
kmalloc.h
kstdio.h
LEB128.h
LexicalPath.cpp
LexicalPath.h
MACAddress.h
Math.h AK: Add to_radians and to_degrees math functions 2023-09-10 08:38:29 +01:00
MaybeOwned.h
MemMem.h
Memory.h
MemoryStream.cpp
MemoryStream.h
NeverDestroyed.h
NoAllocationGuard.h
Noncopyable.h
NonnullOwnPtr.h
NonnullRefPtr.h
NumberFormat.cpp
NumberFormat.h
NumericLimits.h
Optional.h
OptionParser.cpp
OptionParser.h
OwnPtr.h
Platform.h
PrintfImplementation.h
Ptr32.h
Queue.h
QuickSelect.h
QuickSort.h
Random.cpp
Random.h
RecursionDecision.h
RedBlackTree.h
RefCounted.h
RefCountForwarder.h
RefPtr.h
Result.h
ReverseIterator.h
ScopedValueRollback.h
ScopeGuard.h
ScopeLogger.h
SIMD.h
SIMDExtras.h
SIMDMath.h
Singleton.h
SinglyLinkedList.h
SinglyLinkedListSizePolicy.h
SourceGenerator.h
SourceLocation.h
Span.h
Stack.h
StackInfo.cpp
StackInfo.h
Statistics.h
StdLibExtraDetails.h
StdLibExtras.h
Stream.cpp
Stream.h
String.cpp
String.h
StringBuilder.cpp
StringBuilder.h
StringFloatingPointConversions.cpp
StringFloatingPointConversions.h
StringHash.h
StringImpl.cpp
StringImpl.h
StringUtils.cpp
StringUtils.h
StringView.cpp
StringView.h
TemporaryChange.h
Time.cpp
Time.h
Traits.h
Trie.h
Try.h
Tuple.h
TypeCasts.h
TypedTransfer.h
TypeList.h
Types.h
UBSanitizer.h
UFixedBigInt.h
UFixedBigIntDivision.h
UnicodeUtils.h
URL.cpp
URL.h
URLParser.cpp
URLParser.h
Userspace.h
Utf8View.cpp
Utf8View.h
Utf16View.cpp
Utf16View.h
Utf32View.cpp
Utf32View.h
UUID.cpp
UUID.h
Variant.h
Vector.h
Weakable.h
WeakPtr.h