Receive www-authenticate: OAuth realm="Firehose" after prolonged connection to streaming api


I wrote a daemon that connects to the streaming api and that’s all fine - but after running for a day it will fail and the error log reveals the response: www-authenticate: OAuth realm="Firehose"
Is this, as I have seen mentioned elsewhere here, likely to be a timing issue? I read also in the twitter docs ( ) that one has to rate limit reconnection attempts - that was not being done so perhaps I receive this response as a result? Does anyone have experience of this? Does the response message indicate that I need to send a basic www-authenticate header or attempt standard oAuth again at that stage?