https://kotlinlang.org logo
#ktor
Title
# ktor
e

Elliot Barlas

01/04/2022, 7:56 PM
Hi folks, I think I found my issue. Thanks for being a sounding board!
j

Joffrey

01/05/2022, 12:05 AM
What was it eventually?
e

Elliot Barlas

01/05/2022, 12:06 AM
I was not properly reusing the selector manager in this line:
Copy code
val socket = aSocket(selectorManager).tcp().connect(destination)
👌 1
So every socket had its own dedicated selector - not a good idea!
j

Joffrey

01/05/2022, 12:07 AM
I see, thanks for sharing!
e

Elliot Barlas

01/05/2022, 12:07 AM
This is the outcome of my analysis, if you're interested: https://twitter.com/ElliotBarlas/status/1478488410885017600
🙏 2