These are chat archives for rust-lang/rust

9th
Apr 2019
Kelly Thomas Kline
@kellytk
Apr 09 00:26
What's the most simple method of disabling cert validation for Rustls client configs? I've found dangerous() and set_certificate_verifier() however it seems convoluted
Sam Johnson
@sam0x17
Apr 09 04:42
in a project that uses the crate miscreant, how can I specify that when building miscreant to use --no-default-features --features=soft-aes? When I do cargo build --no-default-features --features=soft-aes it says my crate does not have those features... I know it doesn't have them, miscreant does. You see my dilemma... ?
Sam Johnson
@sam0x17
Apr 09 05:02
nvm, figured out, you do --features=miscreant/soft-aes
Kelly Thomas Kline
@kellytk
Apr 09 06:02
For those familiar with using actix; when I run https://github.com/kellytk/x-ws no connection is made to the server and I'm attempting to isolate where the breakdown is. Is the code in src/ws_actor.rs correct to at least connect to the server?
Ash
@ashthespy
Apr 09 16:25
Hello!
Is there a way to get over this without going about https://doc.rust-lang.org/std/iter/index.html#implementing-iterator
 the method `take` exists but the following trait bounds were not satisfied:
           `&mut std::sync::mpsc::Sender<Empty> : std::iter::Iterator`
Denis Lisov
@tanriol
Apr 09 16:27
Why do you want to drop it manually?
Ash
@ashthespy
Apr 09 16:28
Otherwise the thread never joins..
rather, how else would I signal to the thread to finish up because of an upstream error?
Denis Lisov
@tanriol
Apr 09 16:31
One option would be to send a shutdown message. Another is to store Option<Sender<_>> which is probably what you've copied take from.
Ash
@ashthespy
Apr 09 16:32
That would make sense.
tsoernes
@tsoernes
Apr 09 20:31
how do I replace with newline in rust regex?
i've tried both \r and \n
Kelly Thomas Kline
@kellytk
Apr 09 21:02
I'm debugging an issue with WebSocket client connections. https://github.com/kellytk/x-ws/blob/master/src/ws_actor.rs#L31 generates a "failure to resolve" error as expected however if I instead use line 32 it does not. Is it a bug in ClientConnector/SslConnector or have I misconfigured either/both?
Kelly Thomas Kline
@kellytk
Apr 09 23:07
Both the actix web (actix/actix-web#764) author and rust-openssl author say my code is correct and should work. What else can I do to debug the cause of the issue?