HttpServer's socket connection is not closed
I stumbled on a problem while trying to to run ME Framework tests in CLDC environment.
Here is some propersties from Script enviroment:
baseConfiguration = [CLDC]
client = [com.sun.cldc.communication.http.HttpClient, http://10.31.10.48:8080/test/, -verboseClient]
server = [com.sun.cldc.communication.http.HttpServer, verbose=true, http.url=http://10.31.10.48:8080/test/, useIPAddress=false]
command.testExecute = [com.sun.tck.cldc.javatest.CldcTCKCommand]
concurrency = 
command.jtOnly = [com.sun.javatest.lib.ExecStdTestSameJVMCmd]
CLDC HttpClient reads bytes from InputStream until EOF is reached (i.e. FIN send by HttpServer's socket), but this never happens, so HttpClient hangs at loop:
After some review I found out that
conn.close(); // the second close is intentional
is executed each time HTTP request (http://.../test/getNextTest/test1.jar) is handled, but there's no FIN request registered by the sniffer.
What did I miss?
Thanks in advance.