Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Potential race condition of event registration and adding waker?

Abierto
#23 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
30/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
rust
Área
networking

Línea de trabajo

Start at ch10/a-rust-futures-bonus/src/http.rs lines 69-70 and trace the event registration, waker insertion, and epoll handling described in the issue. Determine whether an edge-triggered event can be consumed before the waker is available; done means resolving that race or documenting why it cannot occur, with a regression test if the behavior is reproducible.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

second edition

@cfsamson Would it be possible that after the interest is registered, the reactor quickly get the event and tries to call wake, but waker has not been added since lock here. Now that epoll is edge-level here, the event will never be received again so never wake the executor. I'm not sure if I'm right.

https://github.com/PacktPublishing/Asynchronous-Programming-in-Rust/blob/04d893c7bc8f83e64fbf5e3fa11677a8b1244830/ch10/a-rust-futures-bonus/src/http.rs#L69-L70

Lenguaje dominante
Rust
Estrellas
339
Forks
97
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PacktPublishing/Asynchronous-Programming-in-Rust

Todos los issues de PacktPublishing/Asynchronous-Programming-in-Rust

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.