Skip to content

Commit

Permalink
Add temporary note about ssl issue with Erlang 19
Browse files Browse the repository at this point in the history
I think it would be nice to temporarily add a note about fixing this ssl [error] (edgurgel#164) in the readme. Thoughts?
  • Loading branch information
Ch4s3 authored Nov 15, 2016
1 parent cd2ac03 commit 42efbe4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ HTTP client for Elixir, based on
[HTTPotion](https://github.com/myfreeweb/httpotion)
([documentation](http://hexdocs.pm/httpoison/)).

##Note about broken ssl in Erlang 19
Until this [issue](https://bugs.erlang.org/browse/ERL-192) is fixed ssl handshakes may fail. If you receive this error:
```
{:error, %HTTPoison.Error{id: nil, reason: :closed}}
```
Try the following fix:
```elixir
HTTPoison.get("https://example.com/", [], [ ssl: [{:versions, [:'tlsv1.2'] ])
```

## But... why something so similar to HTTPotion?

HTTPoison uses [hackney](https://github.com/benoitc/hackney) to execute HTTP requests instead of ibrowse. I like hackney :thumbsup:
Expand Down

0 comments on commit 42efbe4

Please sign in to comment.