Hi pieterg,
I took technics patch (post #122) and adapted it, because it didn't run properly for me (perhaps I made somewhere a mistake...). I don't use a mutex, because I think it's not really necessary. I have added a new function isStream, because I didn't like to change valid function to return true even when connection is not established yet.
I hope you'll have some minutes to look at it. I think there are many people who don't like to wait 10 seconds if stream is not available