QUIC connect_re fails without a callback, and PendingAction would cancel an error sentinel

Abierto
#14,203 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
56/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp
Área
networking

Línea de trabajo

Read the documented NetProcessor::connect_re failure behavior in include/iocore/net/NetProcessor.h, then trace the failure paths in src/iocore/net/QUICNetProcessor.cc and src/iocore/net/UnixUDPNet.cc. Also inspect PendingAction.h and the OpenSSL QUIC connect_re path to understand how ACTION_IO_ERROR is handled. Done means every QUIC connect_re failure reports NET_EVENT_OPEN_FAILED and PendingAction safely handles both sentinel results; the issue names no tests to run.

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

Descripción

Bug Event System Network QUIC

NetProcessor::connect_re documents that a failure is reported with NET_EVENT_OPEN_FAILED (NetProcessor.h#L105-L107). The quiche QUICNetProcessor::connect_re returns early when CreateUDPSocket fails, without calling the continuation back (QUICNetProcessor.cc#L166-L170). On a soft error such as a bind failure, CreateUDPSocket sets status to nullptr (UnixUDPNet.cc#L806-L813). The caller then gets nullptr and no event at all, so a caller that waits for the callback hangs. On a hard error it gets ACTION_IO_ERROR, again with no callback. The only in-tree caller (traffic_quic) copes because it treats any result other than ACTION_RESULT_DONE as a failure and tries the next address.

A related latent problem: nothing in the tree ever compares a result against ACTION_IO_ERROR. PendingAction::operator= treats every result except ACTION_RESULT_DONE as a real Action and later calls cancel() on it (PendingAction.h#L99-L111, #L130-L134). Storing ACTION_IO_ERROR (from UDPBind, CreateUDPSocket, or the OpenSSL QUIC connect_re at OpenSSLQUICNetProcessor.cc#L94) in a PendingAction would dereference the sentinel. No caller does that today.

Suggested: have QUIC connect_re deliver NET_EVENT_OPEN_FAILED on every failure, and make PendingAction skip ACTION_IO_ERROR as well as ACTION_RESULT_DONE.


generated with Claude Opus 5.5 by Josiah VanderZee

Lenguaje dominante
C++
Estrellas
2k
Forks
903
Merge medio
4 d 4 h
PR fusionados (30 d)
135

Preparar el entorno

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 apache/trafficserver

Todos los issues de apache/trafficserver

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.