Skip to content

Commit

Permalink
increase timeouts when using httpc module
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeyson committed Jul 11, 2023
1 parent 45d6870 commit b0a5441
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## 0.3.1 (2023.07.11)

* Increase connection timeout

## 0.3.0 (2023.06.20)

* Fixed url request path for aliases
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -23,7 +23,7 @@ by adding `ex_typesense` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:ex_typesense, "~> 0.3.0"}
{:ex_typesense, "~> 0.3"}
]
end
```
Expand Down
4 changes: 2 additions & 2 deletions lib/ex_typesense/http_client.ex
Expand Up @@ -95,8 +95,8 @@ defmodule ExTypesense.HttpClient do
match_fun: :public_key.pkix_verify_hostname_match_fun(:https)
]
],
timeout: 5_000,
connect_timeout: 5_000
timeout: 60_000,
connect_timeout: 60_000
]

case :httpc.request(method, request, http_opts, []) do
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Expand Up @@ -2,7 +2,7 @@ defmodule ExTypesense.MixProject do
use Mix.Project

@source_url "https://github.com/jaeyson/ex_typesense"
@version "0.3.0"
@version "0.3.1"

def project do
[
Expand Down

0 comments on commit b0a5441

Please sign in to comment.