-
Notifications
You must be signed in to change notification settings - Fork 656
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
ChannelInvoker.newPromise should pass file and line to eventLoop.newPromise #202
Labels
Milestone
Comments
Merged
Hey guys, I think I've fixed this with my PR. |
weissi
pushed a commit
to weissi/swift-nio
that referenced
this issue
Jun 13, 2020
…ity when creating stream channels. (apple#202) Motivation: Infow target window size constrains throughput. The default hardcoded 65535 is low for some use cases and so needs to be configrable. A TODO in the code stated 'Make configurable'. Modifications: - In HTTP2StreamMultiplexer, responding to a TODO where stream multiplexer creates a stream channel, created a multiplexr stored property to be used which is set in the default initilaizer. - In HTTP2PipelineHelpers, added versions of configureHTTP2Pipeline(..) and configureCommonHTTP2ServerPipeline that require an activeTargetWindow arg. Result: Clients, such as GRPCClient, can configure pipelines with targetWindowSizes to their liking. Co-authored-by: Cory Benfield <lukasa@apple.com>
weissi
pushed a commit
to weissi/swift-nio
that referenced
this issue
Jun 13, 2020
Motivation: As part of apple#202 we added support for configuring the target window size of stream channels. That was plumbed through into outbound channels, but we missed the inbound ones, meaning that this only really worked for clients, not servers. That hardly seems fair! Modifications: Pass target window size to inbound channels too. Result: We can control target window size of inbound channels.
weissi
pushed a commit
to weissi/swift-nio
that referenced
this issue
Feb 3, 2024
* Add HTTP types adapter for SwiftNIO * swiftformat * Guard on Swift 5.8 * Review comments * Update swift-http-types to 0.1.1 * Update swift-http-types to 1.0.0 * Review feedback * Review feedback * Bump minimum Swift version to 5.7.1 * Allow Host in any order
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
We normally want debugging information to keep track of where our promises are allocated in debug modes. However, if someone does
Channel.newPromise
instead ofeventLoop.newPromise
, that information is lost. The core issue is here:swift-nio/Sources/NIO/ChannelInvoker.swift
Lines 182 to 184 in fef728c
This indirection should preserve the #file and #line specific debugging logic we use elsewhere.
The text was updated successfully, but these errors were encountered: