igrigorik / em-http-request

Asynchronous HTTP Client (EventMachine + Ruby)
1.22k stars 222 forks source link

Fix the issue when redirect request is triggered only after connection inactivity timeout #289

Closed soylent closed 9 years ago

soylent commented 9 years ago

Solves issue #276.

I am not sure if my solution is good. It keeps the existing behaviour except that redirect request is triggered right away.

igrigorik commented 9 years ago

@soylent sorry about the delay, had to dig in a bit to sort this one out.. I think this should do it: https://github.com/igrigorik/em-http-request/commit/de39103c9c269fabb00e842b4f630657d19bd070

Can you test above branch for your use case and (hopefully :)) confirm that its working?

soylent commented 9 years ago

@igrigorik it resolves the issue, thank you!

igrigorik commented 9 years ago

Excellent, should be in master now!