Skip to content

Commit

Permalink
Fix SSL default executor construction
Browse files Browse the repository at this point in the history
  • Loading branch information
bradfier committed Apr 25, 2021
1 parent 08f89c5 commit 8a0145f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ impl<F> Server<F> where F: Send + Sync + 'static + Fn(&Request) -> Response {
let server = try!(tiny_http::Server::https(addr, ssl_config));
Ok(Server {
server,
executor: Executor::Threaded,
executor: Executor::default(),
handler: Arc::new(AssertUnwindSafe(handler)), // TODO: using AssertUnwindSafe here is wrong, but unwind safety has some usability problems in Rust in general
})
}
Expand Down

0 comments on commit 8a0145f

Please sign in to comment.