]>
Commit | Line | Data |
---|---|---|
5eb9dd0c | 1 | use anyhow::{Error, format_err, bail}; |
5eb9dd0c SR |
2 | use std::task::{Context, Poll}; |
3 | use std::os::unix::io::AsRawFd; | |
0f860f71 | 4 | use std::pin::Pin; |
02a58862 | 5 | use std::sync::Arc; |
5eb9dd0c | 6 | |
e5ef69ec DM |
7 | use hyper::client::HttpConnector; |
8 | use http::{Uri, uri::Authority}; | |
9 | use openssl::ssl::SslConnector; | |
5eb9dd0c | 10 | use futures::*; |
9104152a DM |
11 | use tokio::{ |
12 | io::{ | |
b6c06dce DM |
13 | AsyncRead, |
14 | AsyncReadExt, | |
9104152a | 15 | AsyncWriteExt, |
9104152a DM |
16 | }, |
17 | net::TcpStream, | |
18 | }; | |
a2072cc3 | 19 | use tokio_openssl::SslStream; |
5eb9dd0c | 20 | |
25877d05 | 21 | use proxmox_sys::linux::socket::set_tcp_keepalive; |
4229633d | 22 | use proxmox_http::http::{MaybeTlsStream, ProxyConfig}; |