Skip to content
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

feat(lib): missing Timer will warn or panic #3394

Merged
merged 1 commit into from
Nov 8, 2023
Merged

Conversation

seanmonstar
Copy link
Member

If a default timeout is set, and no Timer, a warning will be emitted.

If a timeout is configured by the user, and no Timer is set, it will panic.

Closes #3393

Copy link
Contributor

@tottoto tottoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I left some questions about the implementation and the document.

src/common/time.rs Outdated Show resolved Hide resolved
src/server/conn/http1.rs Outdated Show resolved Hide resolved
@seanmonstar seanmonstar force-pushed the timer-warn-or-panic branch 3 times, most recently from 0e8a1c0 to 1e2c1c5 Compare November 8, 2023 16:29
If a default timeout is set, and no Timer, a warning will be emitted.

If a timeout is configured by the user, and no Timer is set, it will
panic.

Closes #3393
@seanmonstar seanmonstar merged commit f3308c0 into master Nov 8, 2023
19 checks passed
@seanmonstar seanmonstar deleted the timer-warn-or-panic branch November 8, 2023 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Decide what to do about a missing Timer
2 participants