Bugfixing socket/stream timeout handling when receiving data