Skip to content
This repository was archived by the owner on Nov 8, 2017. It is now read-only.

Conversation

@corylulu
Copy link
Contributor

Reddit servers seem to throw a fit if you don't specify both a UserAgent and an AcceptLanguage in the requests. For me, this results in very long responses that took 5-10 seconds for a request.

Using Fiddler, I was able to determine that the timeout was taking place between ServerGotRequest and ServerBeginResponse, so that's when I tried modifying the header until I pinpointed what was causing the long delays.

If others are having similar delays as me, this change makes a world of difference.

Reddit servers seem to throw a fit if you don't specify both a `UserAgent` and an `AcceptLanguage` in the requests. For me, this results in very long responses that took 5-10 seconds for a request. 

Using Fiddler, I was able to determine that the timeout was taking place between `ServerGotRequest` and `ServerBeginResponse`, so that's when I tried modifying the header until I pinpointed what was causing the long delays. 

If others are having similar delays as me, this change makes a world of difference.
@CrustyJew
Copy link
Contributor

This repository is no longer being maintained by the owner. I'm maintaining a hard fork over at https://github.com/CrustyJew/RedditSharp

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants