Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,6 @@ You can check the API with the health_check endpoint: <http://127.0.0.1:3000/hea

## Troubleshooting

### Tokio Runtime Error

If you encounter an error like:

```text
Registering a blocking socket with the tokio runtime is unsupported. If you wish to do anyways, please add `--cfg tokio_allow_from_blocking_fd` to your RUSTFLAGS.
```

You need to set the RUSTFLAGS environment variable when building and running the application:

```console
RUSTFLAGS="--cfg tokio_allow_from_blocking_fd" cargo run
```

This is a known issue with the tokio runtime on certain systems. The flag allows the application to register blocking file descriptors with the async runtime.

### Session Directory Not Found

If you see an error about the session output directory not being found:
Expand Down
4 changes: 4 additions & 0 deletions src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ pub async fn start(bind_to: &SocketAddr, state: AppState) {
let socket =
std::net::TcpListener::bind(bind_to).expect("Could not bind tcp_listener to address.");

socket
.set_nonblocking(true)
.expect("Failed to set socket to non-blocking mode");

let server_address = socket
.local_addr()
.expect("Could not get local_addr from tcp_listener.");
Expand Down