Hi, is there a way in ktor to close HTTP connectio...
# ktor
l
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
Hi, @Ludd . You can add
Connection: close
header. Could you tell me how you perform the request?
l
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) }
130 Views