Skip to content

Commit

Permalink
tcp's streams are the sockets children
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat Hickey committed Aug 31, 2023
1 parent e4f260f commit ec8a654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/wasi/src/preview2/host/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ impl<T: WasiView> tcp::Host for T {

socket.tcp_state = HostTcpState::Connected;
let (input, output) = socket.as_split();
let input_stream = self.table_mut().push_input_stream(input)?;
let output_stream = self.table_mut().push_output_stream(output)?;
let input_stream = self.table_mut().push_input_stream_child(input, this)?;
let output_stream = self.table_mut().push_output_stream_child(output, this)?;

Ok((input_stream, output_stream))
}
Expand Down

0 comments on commit ec8a654

Please sign in to comment.