Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lganzzzo authored Jan 20, 2021
1 parent d8c6aee commit 68d31ed
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,3 @@ auto config = oatpp::openssl::Config::createShared();
auto connectionProvider = oatpp::openssl::client::ConnectionProvider::createShared(config, {"httpbin.org", 443});
```

## Don't forget!

Set openssl lockingCallback and SIGPIPE handler on program start!

```cpp

#include "oatpp-openssl/Callbacks.hpp"

...

/* set lockingCallback for openssl */
oatpp::openssl::Callbacks::setDefaultCallbacks();

```

```c++
#include <csignal>

...

/* ignore SIGPIPE */
std::signal(SIGPIPE, SIG_IGN);
```

0 comments on commit 68d31ed

Please sign in to comment.