Closed tateisu closed 4 years ago
It may be needless to say, I use this code to detect FlashAir devices inside the LAN.
Hi @tateisu, thanks for the report. It was fixed with migration to kotlinx-coroutines
semaphore.
@e5l I am still seeing this on ktor-client-cio:1.2.6
Could you please link a commit and mention which version this get released in?
The fix in the 1.3.0-beta-2
update
Ktor Version and Engine Used (client or server and name) Ktor 1.2.5, using HTTP client (CIO)
Describe the bug when my app create many request to other hosts, frequenly ConnectionFactory raises NoSuchElementException.
ConcurrentHashMap.keys().nextElement may throw NoSuchElementException, but io.ktor.util.cio.Semaphore.leave() does not catch it.
To Reproduce
code to reproduce
Expected behavior this error should not be happen.
Screenshots no, this is CLI.