-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NIOTS doesn't let you control the equivalent of maxMessagesPerRead
and recvAllocator
#92
Comments
Hi @weissi! Just came across this in one of my own projects and have some motivation to fix it. This would be my first time contributing to to an Could you suggest what a good user-facing API would look like for configuring these values? Perhaps another option under Thanks! |
Hi @edwellbrook , awesome, and welcome! And thank you for your PR, I'll leave comments regarding your PR on the actual PR. Were you separately from your existing PR (which configures the maximum read size) interested in working on |
Unfortunately I don't have much need for Not super familiar with |
@edwellbrook totally up to you. I fully understand if you can't budget the time. Ping me if you'd like an explanation of what it does exactly and how we could implement it. |
@weissi It's looking like I may need Does it refers to the number of messages an If that's right... I'd love a suggestion on how to implement it. Cheers! |
Yup, that's exactly what it means. In principle the mechanism to implement it should be simply to call |
@Lukasa Thanks! Will take a look tomorrow morning. |
swift-nio-transport-services/Sources/NIOTransportServices/NIOTSConnectionChannel.swift
Lines 583 to 585 in 2ac8fde
NIOTS always does one underlying
receive
perread
and always up to8192
.So that kinda corresponds to:
maxMessagesPerRead = 1
recvAllocator = AdaptiveRecvAllocator(minimum: 1, maximum: 8192, initial: ???)
We should make those values configurable.
The text was updated successfully, but these errors were encountered: