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

pajatopmr

03/11/2019, 2:50 PM
Any suggestions on how to avoid the connection refused exception? Or explanations on what is going on?
r

r4zzz4k

03/11/2019, 11:07 PM
Are you entirely sure
withTestAppliction
can be used for serving requests? IIRC this facility allows one to test server code with requests constructed programmatically within test, not received from network. Try to add Netty engine and use
embeddedServer(Netty, commandLineEnvironment{))
instead of it.
5 Views