compio-rs / compio-rs/cyper

cyper-axum: `Sse::keep_alive()` will panic

Open
#72 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
85
Forks
19
Avg merge
2h
Merged PRs (30d)
2

Description

```
thread panicked at axum-0.8.9/src/response/sse.rs:591:26:
there is no reactor running, must be called from the context of a Tokio 1.x runtime
```

because it uses `tokio::time::Sleep`

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the panic from Sse::keep_alive() and inspect the referenced axum-0.8.9/src/response/sse.rs location, especially its use of tokio::time::Sleep. Done means keep-alive no longer panics when used with cyper's runtime; add or run a regression test if the repository provides a relevant test entry point.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.