Added api to specify stream timeout and buffer size

api for stream timeout and buffer size