increase default read timeout
closes sk22#923
This commit is contained in:
parent
cd13777c06
commit
52928e1577
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,9 @@ public class MastodonAPIController{
|
|||
.registerTypeAdapter(Status.class, new Status.StatusDeserializer())
|
||||
.create();
|
||||
private static WorkerThread thread=new WorkerThread("MastodonAPIController");
|
||||
private static OkHttpClient httpClient=new OkHttpClient.Builder().build();
|
||||
private static OkHttpClient httpClient=new OkHttpClient.Builder()
|
||||
.readTimeout(30, TimeUnit.SECONDS)
|
||||
.build();
|
||||
|
||||
private AccountSession session;
|
||||
private static List<String> badDomains = new ArrayList<>();
|
||||
|
|
Loading…
Add table
Reference in a new issue