CodementorIO / rest-firebase

Ruby Firebase REST API client built on top of rest-core
Apache License 2.0
107 stars 22 forks source link

change follow-redirect to 10 for fix eof error #7

Closed chan-san closed 8 years ago

chan-san commented 8 years ago

Since 2015-11-14 12am(GMT), receive EOFError on event_source.

Firebase support team says,

We indeed introduced an extra redirect in the initial setup of the connection from the client to the correct Firebase server. So I change follow-redirect to 10.

The issue is fixed.

godfat commented 8 years ago

Thanks! I feel 10 times is a bit too many though. What do you think about 5 times?

godfat commented 8 years ago

I'll be changing it from 10 to 5, if there's no further feedback and release a new version soon. As a side note, you could workaround this by setting max_redirects for the client. i.e.

client = RestFirebase.new(:max_redirects => 10)

or

client = RestFirebase.new
client.max_redirects = 10