mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_ws: OutMessage and InMessage simd-json fixes
* use simd-json in OutMessage deserialization * take ownership in InMessage deserialization to avoid bugs * Update benchmark results, benchmark was broken * Compile simd-json even if simd is not on, so that rust-analyzer works
This commit is contained in:
parent
8dfe524421
commit
56bc028a44
9 changed files with 1031 additions and 1020 deletions
|
|
@ -195,8 +195,8 @@ pub fn run_handshakes_and_read_messages(
|
|||
use ::tungstenite::Error::Io;
|
||||
|
||||
match established_ws.ws.read_message(){
|
||||
Ok(mut ws_message) => {
|
||||
if let Ok(in_message) = InMessage::from_ws_message(&mut ws_message){
|
||||
Ok(ws_message) => {
|
||||
if let Ok(in_message) = InMessage::from_ws_message(ws_message){
|
||||
let naive_peer_addr = established_ws.peer_addr;
|
||||
let converted_peer_ip = convert_ipv4_mapped_ipv6(
|
||||
naive_peer_addr.ip()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue