|
// TODO: Can we do something sensible with these numbers? |
|
self.outstandingRead = true |
|
conn.receive(minimumIncompleteLength: 1, maximumLength: 8192, completion: self.dataReceivedHandler(content:context:isComplete:error:)) |
NIOTS always does one underlying receive per read and always up to 8192.
So that kinda corresponds to:
maxMessagesPerRead = 1
recvAllocator = AdaptiveRecvAllocator(minimum: 1, maximum: 8192, initial: ???)
We should make those values configurable.
swift-nio-transport-services/Sources/NIOTransportServices/NIOTSConnectionChannel.swift
Lines 583 to 585 in 2ac8fde
NIOTS always does one underlying
receiveperreadand always up to8192.So that kinda corresponds to:
maxMessagesPerRead = 1recvAllocator = AdaptiveRecvAllocator(minimum: 1, maximum: 8192, initial: ???)We should make those values configurable.