We are using the 4.4.14 of HttpCore NIO. We are having an issue while sending a request to the server with additional newline characters where the CPU usage seems to increase and stays on forever. We debugged and found out that after the HTTPS response is written back to the client, the server tries to close the connection and the SSLIOSession. Furthermore, we found out that the condition  which gets executed in order to make the state as closed becomes false forever and hence it keeps on trying to close and results in the CPU spike.
After further debugging we found out that the after a certain point the position is always less than the limit and the state is set to COMPLETED in the parse method of AbstractMessageParser.java , even though there are more lines to be read.
In order to resolve this we did a small fix as shown in FixCPUSpike.png.
We have attached a sample client and a server in order to reproduce the issue.
Appreciate your help on this in resolving this issue.