Redirection limits

Sean Conner sean at conman.org
Tue Oct 27 22:07:30 GMT 2020


It was thus said that the Great Kevin Sangeelee once stated:
> It was consequently queried by the Kind and Honourable Sean Conner:
> 
> >  How?  Given that a redirection loop can exist across servers.
> 
> The link '/test/redirhell/' generates some unique hex for each new redirect
> path, which could alternatively have the hex preserved across redirects,
> but with a counter that's incremented instead. If the counter exceeds, say
> 11428, then return a '50 YOU ARE DRIVING ME NUTS' response code.
> 
> As I understand it, the redirhell test redirects back to itself, not across
> servers - my reply was more in sympathy with your server than with the
> unrelenting client. 

  It wasn't "driving me nuts" as in "oh my God!  My server is melting under
the load!" but more of a "oh, it looks like someone wrote an automated
client and didn't limit redirections."  Yes, I'll see clients being tested
and get caught in the Redirection Hell test, but those tend to make perhaps
a few dozen requests before stopping.  It was clear to me that the author of
the particular client didn't test for infinite redirections, and the only
way I can bring the issue up is on the mailing list.

> I'm grateful for your implement of torture, it's been very useful!

  You're welcome.  If you can think of any other tests that might be
helpful, please don't hesitate to let me know.

  -spc


More information about the Gemini mailing list