Topic: [Bug/Fixed] Keep-Alive Still Enabled?

Posted under Site Bug Reports & Feature Requests

This topic has been locked.

Bug overview description.
If I automatically download some images over HTTPS using a Python tool I keep getting "Resetting Dropped Connection: static1.e621.net" after every image download. This tends to occur when urllib wasn't able to keep the connection alive between requests (there's normally a 5 second pause to keep from overloading e621, progressively longer if there are any Cloudflare issues). Have you guys started ignoring Keep-Alive settings, is it a site bug, or are you trying to ban the tool? I don't see anything in the site change log about it. I haven't tested HTTP.

What part(s) of the site page(s) are affected?
All image gallery content. Rest of the site is untested.

What is the expected behavior?
Connection isn't reset after every download.

What actual behavior is given instead?
Connection is dropped after every download.

Time of incident (if applicable).
I noticed it occurring after every image yesterday morning, but I have been slowly seeing the message more and more often before that.

Can you reproduce the bug every time?
Yes

What steps did you take to replicate this bug?
Tried to download multiple files over the same connection.

Errors or other messages returned (if any).
Resetting Dropped Connection: static1.e621.net

Updated

This is most likely a configuration error. I'll go through and review the timeout settings and see what I can turn up, since keep-alive is indeed important. Static content was moved to a different server yesterday, so it's likely that there is just something that was missed.

Updated by anonymous

Found some low timeout values in the config. Adjusted them as needed. You should be able to have normal keep-alive conditions again.

For reference, if you get blocked, you'll start getting 403 errors. We're not subtle about it.

Updated by anonymous

It's working now, thanks. I also updated my user-agent to follow the API guidelines.

Updated by anonymous

  • 1