Skip to content

NIOTS doesn't let you control the equivalent of maxMessagesPerRead and recvAllocator #92

@weissi

Description

@weissi

// 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions