[edge] Listeners, tests first: an overall header deadline (slowloris), pipelined requests answered in order on both listeners, a proxy socket whose X-Forwarded-For is believed (red: the deadline is a pass-through)
This commit is contained in:
@@ -162,6 +162,12 @@ impl ProxyHttp for EdgeProxy {
|
||||
}
|
||||
}
|
||||
|
||||
async fn early_request_filter(&self, session: &mut Session, _ctx: &mut Ctx) -> Result<()> {
|
||||
// The header is in: the header deadline (slowloris) no longer applies.
|
||||
crate::deadline::header_read();
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn request_filter(&self, session: &mut Session, ctx: &mut Ctx) -> Result<bool> {
|
||||
let rt = self.shared.current();
|
||||
ctx.rt = Some(rt.clone());
|
||||
|
||||
Reference in New Issue
Block a user