split proxy into stream handler and http message handler

This commit is contained in:
Jun Kurihara 2022-07-10 03:11:46 +09:00
commit 954a1993a9
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
14 changed files with 92 additions and 71 deletions

View file

@ -1,3 +1,4 @@
use crate::backend::Backends;
use std::net::SocketAddr;
use std::sync::{
atomic::{AtomicUsize, Ordering},
@ -5,7 +6,6 @@ use std::sync::{
};
use tokio::time::Duration;
#[derive(Debug, Clone)]
pub struct Globals {
pub listen_sockets: Vec<SocketAddr>,
pub http_port: Option<u16>,
@ -19,6 +19,8 @@ pub struct Globals {
pub http3: bool,
pub runtime_handle: tokio::runtime::Handle,
pub backends: Backends,
}
#[derive(Debug, Clone, Default)]