mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
fix ipv6 udp and wisp-mux 2.0.2
This commit is contained in:
parent
7583a9c3fd
commit
595af12cb7
5 changed files with 7 additions and 6 deletions
|
@ -8,7 +8,7 @@ impl From<OpCode> for crate::ws::OpCode {
|
|||
fn from(opcode: OpCode) -> Self {
|
||||
use OpCode::*;
|
||||
match opcode {
|
||||
Continuation => unreachable!(),
|
||||
Continuation => unreachable!("continuation should never be recieved when using a fragmentcollector"),
|
||||
Text => Self::Text,
|
||||
Binary => Self::Binary,
|
||||
Close => Self::Close,
|
||||
|
|
|
@ -255,7 +255,7 @@ impl<W: ws::WebSocketWrite> ServerMuxInner<W> {
|
|||
}
|
||||
}
|
||||
}
|
||||
Continue(_) => unreachable!(),
|
||||
Continue(_) => break Err(WispError::InvalidPacketType),
|
||||
Close(_) => {
|
||||
if let Some(mut stream) =
|
||||
self.stream_map.lock().await.remove(&packet.stream_id)
|
||||
|
@ -421,7 +421,7 @@ impl<W: ws::WebSocketWrite> ClientMuxInner<W> {
|
|||
|
||||
use PacketType::*;
|
||||
match packet.packet_type {
|
||||
Connect(_) => unreachable!(),
|
||||
Connect(_) => break Err(WispError::InvalidPacketType),
|
||||
Data(data) => {
|
||||
if let Some(stream) = self.stream_map.lock().await.get(&packet.stream_id) {
|
||||
let _ = stream.stream.unbounded_send(data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue