connect_re returns ACTION_RESULT_DONE while the callback is still pending

Abierto
#14,194 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
57/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
cpp

Línea de trabajo

Read the cited paths in UnixNetProcessor.cc, Socks.cc, and QUICNetProcessor.cc, then follow how SocksEntry and vc->action_ provide cancellable actions. Start by checking the connect_re return paths against the behavior described in Action.h and PendingAction.h. Done means the SOCKS and QUIC paths return the specified cancellable actions while still delivering the callback; verify with the relevant networking tests.

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

Descripción

Bug Network QUIC SOCKS

ACTION_RESULT_DONE tells the caller that the request left nothing to cancel (Action.h#L242-L256). Two connect_re implementations return it while a callback is still on its way, so the caller can't cancel the connect.

SOCKS retry. In UnixNetProcessor.cc#L243-L252, when SOCKS is in use and the inline connectUp() fails, connect_re returns ACTION_RESULT_DONE. But connectUp() reports the failure to the SocksEntry, not the user (UnixNetVConnection.cc#L1243-L1245). SocksEntry::startEvent then picks the next SOCKS server and calls connect_re again asynchronously (Socks.cc#L205-L230). The user's continuation is called back later with NET_EVENT_OPEN or NET_EVENT_OPEN_FAILED from SocksEntry::free() (Socks.cc#L161-L175). HttpSM stores the result in pending_action (HttpSM.cc#L6308), and PendingAction ignores ACTION_RESULT_DONE (PendingAction.h#L99). If the transaction ends before the retry finishes, nothing cancels the SocksEntry, and its callback reaches a continuation that may already be gone.

QUIC (quiche). QUICNetProcessor::connect_re returns ACTION_RESULT_DONE on every success path (QUICNetProcessor.cc#L203-L223). NET_EVENT_OPEN is only delivered after the handshake completes, from _start_application() (QUICNetVConnection.cc#L283). The only in-tree caller is traffic_quic.

In both cases connect_re should return a real, cancellable Action: the SocksEntry action for SOCKS, and &vc->action_ for QUIC.


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.