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

Add configurable connection and read timeouts #25

Merged

Conversation

llehtinen
Copy link
Contributor

I was toying with a Bugsnag logback appender which was calling client.notify inside the synchronized append method. Thread dump showed one thread stuck in int status = conn.getResponseCode(); inside HttpClient, and a few hundred threads waiting for it to release the lock it was holding.

Apparently if not configured, the connect and read timeouts are infinite. I added 60s defaults and tried to make them configurable. Let me know what you think.

@kattrali
Copy link
Contributor

kattrali commented Dec 4, 2015

Thanks, @llehtinen. This looks good. Merging after I add some documentation around the additional properties.

@kattrali kattrali merged commit 7286c3e into bugsnag:master Dec 4, 2015
kattrali added a commit that referenced this pull request Dec 4, 2015
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.

None yet

2 participants