Add temporary debug prints.
This commit is contained in:
parent
225cb34bab
commit
e9513cdae8
@ -558,8 +558,10 @@ pub async fn thread_system(mut app:App, bus:Bus<protocol::QRPacket>)
|
||||
}
|
||||
}
|
||||
|
||||
println!("sendblock");
|
||||
if request.status != STATUS_ERROR {
|
||||
for packet in packets {
|
||||
println!("sendto: {}", packet.id);
|
||||
app.send_response(packet).await;
|
||||
}
|
||||
|
||||
|
@ -112,21 +112,29 @@ impl Server for TlsServer {
|
||||
Fut: std::future::Future<Output = Result<(),()>> + Send + 'static,
|
||||
Args: Send + 'static
|
||||
{
|
||||
println!("A");
|
||||
match &self.listener {
|
||||
Some(listener) => {
|
||||
println!("B");
|
||||
if let Ok((socket, client_addr)) = listener.accept().await {
|
||||
let acceptor = LazyConfigAcceptor::new(Acceptor::default(), socket);
|
||||
let certificates = self.certificates.clone();
|
||||
|
||||
println!("C");
|
||||
Ok(tokio::spawn(async move {
|
||||
println!("D");
|
||||
match acceptor.await {
|
||||
Ok(hs) => {
|
||||
println!("E");
|
||||
let hello = hs.client_hello();
|
||||
if let Some(server_name) = hello.server_name() {
|
||||
println!("F");
|
||||
match Self::get_server_config(certificates, server_name).await {
|
||||
Some(server_config) => {
|
||||
println!("G");
|
||||
match hs.into_stream(server_config).await {
|
||||
Ok(tlsstream) => {
|
||||
println!("H");
|
||||
callback(Self::Stream { stream:tlsstream }, client_addr, args).await
|
||||
}
|
||||
Err(_) => Err(())
|
||||
|
Loading…
x
Reference in New Issue
Block a user