ipfs-shipyard / java-ipfs-http-client

A Java implementation of the HTTP IPFS API
MIT License
538 stars 243 forks source link

mvn test fails with java.net.SocketTimeoutException: Read timed out #195

Closed adpadilla closed 2 years ago

adpadilla commented 2 years ago

I attempted to run the tests (both Mac/Linux envs) with ipfs running via docker compose script provided but receive a 'read timed out' error when tests were running. Please advise.

Git Hash(master branch) used: f757426b6ae77419742f9ab1620f29db12881375

java.net.SocketTimeoutException: Read timed out

Clay-Ferguson commented 2 years ago

probably just needs this:

HttpURLConnectio c = ...
c.setReadTimeout(...)
c.setConnectTimeout(...)

I think those are the only two timeout values, but check me, I might be wrong.

ianopolous commented 2 years ago

The docker compose script was out of date. Tests are green on the latest master.