-
Notifications
You must be signed in to change notification settings - Fork 652
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
channelRead invoked before channelActive #196
Labels
kind/bug
Feature doesn't work as expected.
Comments
FYI: #195 did not help. |
FYI: #204 did not help either. It just made it pop up a bit less frequently. |
weissi
pushed a commit
to weissi/swift-nio
that referenced
this issue
Jun 13, 2020
weissi
pushed a commit
to weissi/swift-nio
that referenced
this issue
Feb 3, 2024
* Fix documentation and add support for CI-ing it * Soundness cleanup
This could still be happening. Probably related to #2773 . The recipe for bad stuff would be to trigger operations from the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
The Channel callbacks lifecycle should start with
channelActive
and end withchannelInactive
.Actual behavior
Sometimes under high concurrency the
channelRead
is invoked prior tochannelActive
.Steps to reproduce
Run the attached code.
The code fails in one of three ways:
q.sync
)The first two failures might not be relevant, but it warrants to take a look. This particular issue is mainly about failure number 3, Precondition failed.
Minimal yet complete reproducer code
StuckTest.zip
SwiftNIO version/commit hash
681ddd8bab4fac997cbc70ca15a1e13c74da50b9
(nmaurer/order_fix)Swift & OS version (output of
swift --version && uname -a
)Apple Swift version 4.1 (swiftlang-902.0.38 clang-902.0.30)
Target: x86_64-apple-darwin17.4.0
Darwin Levs-MacBook-Pro.local 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered: