(
&self,
)
| 1674 | } |
| 1675 | |
| 1676 | async fn start_requests( |
| 1677 | &self, |
| 1678 | ) -> Result<( |
| 1679 | hyper::client::conn::http1::SendRequest<String>, |
| 1680 | tokio::task::JoinHandle<hyper::Result<()>>, |
| 1681 | )> { |
| 1682 | let tcp = TcpStream::connect(&self.addr) |
| 1683 | .await |
| 1684 | .context("failed to connect")?; |
| 1685 | let tcp = wasmtime_wasi_http::io::TokioIo::new(tcp); |
| 1686 | let (send, conn) = hyper::client::conn::http1::handshake(tcp) |
| 1687 | .await |
| 1688 | .context("failed http handshake")?; |
| 1689 | Ok((send, tokio::task::spawn(conn))) |
| 1690 | } |
| 1691 | } |
| 1692 | |
| 1693 | // Don't leave child processes running by accident so kill the child process |
no test coverage detected