Re: Error Handling with IO::Socket.:Async::SLL

2017-10-16 Thread Martin Barth
I've changed the code to this, It's better but still not correct. 1) curl with http hangs and must be terminated with Ctrl+C 2) the code now restarts the server socket, which I also dont expect to happen. use v6; use IO::Socket::Async::SSL; sub auto-restart(Supply $incoming) {     supply {

Re: Error Handling with IO::Socket.:Async::SLL

2017-10-16 Thread Timo Paulssen
It took me a while, but I just found jnthn's automatic retry code for supply-based things again. It's in these slides http://jnthn.net/papers/2017-perl6-concurrency-pcp.pdf on page 83 You'll want to use "supply" instead of "react" for your server and pass that to the auto-retry function.

Error Handling with IO::Socket.:Async::SLL

2017-10-16 Thread Martin Barth
Hi there, I need your help. I've been playing around with the code example from IO::Socket::Async::SSL and I am to stupid to get a propper error handling to work. use v6; use IO::Socket::Async::SSL; react {     my %ssl-config =     certificate-file => 'cert.pem',     private-key-fil