Socket timeout added
Request output
reversing the in.readLine
request terminating condition added