mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 14:30:02 -04:00
remove a bunch of allocations from packet encode, drop rogue clients' packets
This commit is contained in:
parent
ce2660943a
commit
855fa610ed
3 changed files with 77 additions and 74 deletions
|
@ -381,7 +381,7 @@ impl MuxInner {
|
|||
}
|
||||
Data(data) => {
|
||||
if let Some(stream) = self.stream_map.get(&packet.stream_id) {
|
||||
let _ = stream.stream.send_async(data).await;
|
||||
let _ = stream.stream.try_send(data);
|
||||
if stream.stream_type == StreamType::Tcp {
|
||||
stream.flow_control.store(
|
||||
stream
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue