Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 8, 2017. It is now read-only.

Fixed long response times for requests made to reddit#236

Open
corylulu wants to merge 1 commit intoddevault:masterddevault/RedditSharp:masterfrom
corylulu:patch-6corylulu/RedditSharp:patch-6Copy head branch name to clipboard
Open

Fixed long response times for requests made to reddit#236
corylulu wants to merge 1 commit intoddevault:masterddevault/RedditSharp:masterfrom
corylulu:patch-6corylulu/RedditSharp:patch-6Copy head branch name to clipboard

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

Comments

Close sidebar
Morty Proxy This is a proxified and sanitized view of the page, visit original site.