Hi guys,
I am facing a strange issue with Ktor HttpClient(CIO).
The client call looks like below:
httpClient.get<HttpResponse> {
method = HttpMethod.Get
url("
http://10.1.1.1")
}
It is expected to throw an error initially, I am catching that and recalling it after a delay.
If I reinstantiate the client -> httpClient = HttpClient(CIO) in the catch block, it works fine. If I don't it stays as is forever, and never comes up with a response. Any help is appreciated