As Juraj specified, typing \r\n in Putty does not result in \r\n being sent as it is interpreted literally by Putty. That is equivalent to 4 characters instead of the desired 2.
As Juraj specified, typing \r\n in Putty does not result in \r\n being sent as it is interpreted literally by Putty. That is equivalent to 4 characters instead of the desired 2.