Keep Alive Connection in WebApp

I have a web app running as a standalone App on a linux system. I use a desktop app to communicate with it via an HTTPSSocket. both built using Xojo. The communication works but it is slow with the reply headers containing “connection close”. I tried setting the “connection” “keep-alive” on the request from the Desktop App but still it seems the connection closes.
I am using this in synchronous mode. Any help is appreciated.



The standalone web server doesn’t support keep-alive connections.