Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #122 - okhttp3 read+connect timeouts added #127

Merged
merged 2 commits into from
Sep 20, 2017

Conversation

maqzi
Copy link
Member

@maqzi maqzi commented Sep 14, 2017

Fixes issue #122.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 47.208% when pulling b845e20 on maqzi:issue122 into 0650358 on ViDA-NYU:master.

@aecio aecio changed the title okHttp3 read+connect timeouts added Issue #122 - okhttp3 read+connect timeouts added Sep 14, 2017
Copy link
Member

@aecio aecio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @maqzi ,

For consistency let's use underscores in the parameter names. Also, add the following parameters and these default values for the httpclient implementation. Thanks.

# configurations for okhttp3 fetcher
crawler_manager.downloader.okhttp.connect_timeout: 30000 # 30 sec
crawler_manager.downloader.okhttp.read_timeout: 30000  # 30 sec

#/ configurations for httpclient fetcher
crawler_manager.downloader.httpclient.socket_timeout: 30000 # 30 sec
crawler_manager.downloader.httpclient.connection_timeout: 3000 # 30 sec
crawler_manager.downloader.httpclient.connection_request_timeout: 60000  # 60 sec

@@ -47,6 +47,12 @@

@JsonProperty("crawler_manager.downloader.cookies")
private List<Cookie> cookies = null;

@JsonProperty("crawler_manager.downloader.connectTimeout")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better use underscores in connectTimeout and readTimeOut to keep consistency.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 47.426% when pulling cd37e38 on maqzi:issue122 into 0650358 on ViDA-NYU:master.

@aecio aecio merged commit c593070 into VIDA-NYU:master Sep 20, 2017
@aecio
Copy link
Member

aecio commented Sep 20, 2017

Thanks @maqzi!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants