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

Ouverte
#14,203 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 2 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
56/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
cpp
Domaine
networking

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
C++
Étoiles
2k
Forks
903
Merge moyen
4 j 4 h
PR mergées (30 j)
135

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de apache/trafficserver

Toutes les issues de apache/trafficserver

Issues similaires

Plus d'issues C++

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.