Change default timeout to 0
Try to detect invalid stream state