httpbin icon indicating copy to clipboard operation
httpbin copied to clipboard

Drip not dripping?

Open jeroen opened this issue 11 years ago • 8 comments

Is the drip api still working? I tried this jsfiddle and also curl but it seems like the data gets delayed until the end. Perhaps your CDN is waiting for the request to complete or so?

curl https://httpbin.org/drip?duration=5&numbytes=5000

jeroen avatar Sep 29 '15 12:09 jeroen

It could be Heroku's proxy that is doing this. I am confident the endpoint is written correctly because I've stolen the basic ideas for other flask projects I've written.

sigmavirus24 avatar Sep 29 '15 12:09 sigmavirus24

Could be. I am seeing Server:nginx, is that Heroku? They are probably using proxy_buffering on.

jeroen avatar Sep 29 '15 12:09 jeroen

Er, put it like this. Last I checked, @Runscope/httpbin 's engineers who manage the deployment were still using Heroku. If you run httpbin locally, do you still see the same issue? My guess is no. (I don't have time to check right now.)

sigmavirus24 avatar Sep 29 '15 13:09 sigmavirus24

Actually yes I do see the same problem locally.

jeroen avatar Sep 29 '15 13:09 jeroen

That's bizarre. According to Flask's documentation, our endpoint should work correctly.

I wonder if Flask/werkzeug behave differently if there's a Content-Length header. Can you modify your local copy to get rid of that?

sigmavirus24 avatar Sep 29 '15 13:09 sigmavirus24

That doesn't seem to fix it.

jeroen avatar Sep 29 '15 13:09 jeroen

Interesting

sigmavirus24 avatar Oct 01 '15 02:10 sigmavirus24

Same issue. I see 8s for TTFB when I send a delay of 0 and a duration of 8. I am running on Heroku.

brandon-shannon avatar Sep 08 '16 19:09 brandon-shannon