Hi, is there a way in ktor to close HTTP connection with client from server after responding to a post request? Cause a client seems to be keeping connection alive without reusing it.
e
e5l
08/29/2019, 3:04 PM
Hi, @Ludd . You can add
Connection: close
header. Could you tell me how you perform the request?
l
Ludd
08/29/2019, 3:07 PM
Yes, thanks, seems to be working.
If you are asking about client-side of request, it is an aws sns system which have an issue with keep-alive from a long time ago. Which leads to a socket leak.
Server-side is a simple post(...) {
call.respond(Ok)
}