I have the following codes for Socket to receive request. Seems it got NULL request occasionally.
BufferedReader in =new BufferedReader(new InputStreamReader(socket.getInputStream()));
String input = in.readLine();
I do not know where this NULL request is from.
1. Is it from client request? Seems the client side never send NULL request to this server codes.
2. Is it from server OS, e.g. heartbeat? or KeepAlive request, actually I have setKeepAlive false.
3. Is any case of BufferedReader.readLine() method return NULL? seems it return NULL if the end of the stream has been reached. When will this happens? My client side only sends one line request to this sever codes.
Thank you for the help.