refs #15. Fix a bug, remove the  socket I/O blocking  in socket inputstream read.