Skip to content

Commit 41e73fc

Browse files
authored
Support WASI platforms
1 parent 8500cda commit 41e73fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/streams.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ impl BaseStream {
131131

132132
fn connect_tcp(host: &Host<&str>, port: u16, info: &ConnectInfo) -> Result<(TcpStream, Option<mpsc::Sender<()>>)> {
133133
let stream = happy::connect(host, port, info.base_settings.connect_timeout, info.deadline)?;
134+
#[cfg(not(target_os = "wasi"))]
134135
stream.set_read_timeout(Some(info.base_settings.read_timeout))?;
135136
let timeout = info
136137
.deadline

0 commit comments

Comments
 (0)