[AESH-79]
fixes that read thread blocks on inputstream.read