quininer / tokio-rustls

Asynchronous TLS/SSL streams for Tokio using Rustls.
142 stars 38 forks source link

Hello, When i use 0.10.3, sometimes pending occurs. #62

Closed lixiaodongcq closed 4 years ago

lixiaodongcq commented 4 years ago

Hello, When i use 0.10.3, there is some improvement in the request pending, but sometimes pending occurs, can you continue to optimize it based on 0.10.3?

quininer commented 4 years ago

Can you provide a reproducible code or describe the problem in detail?

lixiaodongcq commented 4 years ago

I use tokio_rustls as the https server. The conditions that occur are occasional. When there are some requests, the server does not accept the requests. When the netstat command is called, I find that the server has more close_wait states. But it may recover again after a while。

quininer commented 4 years ago

This sounds completely unrelated to #61 because it only affects clients with 0-RTT turned on.

Will you have the same problem if you try to use tokio-tls or not use tls?

lixiaodongcq commented 4 years ago

Is tokio-tls support client auth?

quininer commented 4 years ago

I think it supports, see https://docs.rs/native-tls/0.2.3/native_tls/struct.TlsConnectorBuilder.html#method.identity .

quininer commented 4 years ago

Do you use irc or matrix? We can directly chat.

lixiaodongcq commented 4 years ago

Sorry. It's my fault. I just can not find how to add root cert in sever to authority client cert in tokio-tls

lixiaodongcq commented 4 years ago

Sorry I just use qq or wechat

quininer commented 4 years ago

I think you are looking for add_root_certificate instead of client auth.

Anyway, I don't think github issue is a proper place.