I am using com.sun.net.httpserver.HttpsServer in my current project which deals with client-authentification etc.. Currently it only prints out the clients addr
com.sun.net.httpserver.HttpsServer
try to add the following code:
con.setRequestProperty("Connection", "Keep-Alive"); con.setRequestProperty("Keep-Alive", "header");