envoyproxy/envoy

Protecting envoy from stacking events on the same fd

Open

#8924 aperta il 7 nov 2019

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)C++ (5373 fork)batch import
area/connectionhelp wantedtech debt

Metriche repository

Star
 (27.997 star)
Metriche merge PR
 (Merge medio 8g) (378 PR mergiate in 30 g)

Descrizione

Description: The way envoy FileEventImpl use libevent is tricky. If two FileEventImpl refer to the same fd, eventually the assigned events are stacked and it's probably hard to recover the intention of each other.

https://github.com/envoyproxy/envoy/pull/8922 is the one I encountered but I believe there are more hidden.

We need to figure out

  1. what is pattern we should follow all over envoy,
  2. how to detect the violation
  3. what are the tools to debug when we suspect there is violation

Guida contributor