There is no read/connect timeouts set for UrlConnection. Because of that when any endpoint is called during which network goes down connection gets stuck (by default there is infinite timeout)
Expected behavior
Connection times outs when network is down during a call
Actual behavior
Connection gets stuck when network is down
Steps to reproduce the behavior
while(true){
graphClient.anyRequest();
}
Disable network during executing the loop