-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Crash when using very tight or past deadline #71
Comments
I'd say this is a NIO bug |
I will fix this |
weissi
added a commit
to weissi/swift-nio
that referenced
this issue
Jul 17, 2019
Motivation: Subtracting deadlines should just work, no matter if the result is positive or negative. Modifications: Don't crash on earlierDeadline - laterDeadline. Result: - fewer crashes - fixes swift-server/async-http-client#71
Lukasa
pushed a commit
to apple/swift-nio
that referenced
this issue
Jul 19, 2019
Motivation: Subtracting deadlines should just work, no matter if the result is positive or negative. Modifications: Don't crash on earlierDeadline - laterDeadline. Result: - fewer crashes - fixes swift-server/async-http-client#71
This is released btw as NIO 1.5.1 I believe |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
The following code causes a crash:
The backtrace is as follows:
And the reason is that
HTTPClient.resolve()
computes a negativeNIODeadline
which is not legal (UInt64
)The text was updated successfully, but these errors were encountered: