sendgrid / sendgrid-java

The Official Twilio SendGrid Led, Community Driven Java API Library
https://sendgrid.com
MIT License
485 stars 409 forks source link

Connection Timeout #687

Closed EdisonChang closed 3 years ago

EdisonChang commented 3 years ago

Connection Timeout

What's the default connection timeout when we cannot connect to SendGrid?

shwetha-manvinkurke commented 3 years ago

@EdisonChang The default client uses the apache httpclient under the hood which [defines the default timeout](https://www.javadoc.io/static/org.apache.httpcomponents/httpclient/4.5.13/org/apache/http/client/config/RequestConfig.html#getConnectionRequestTimeout()). You could also bring in your own client if that doesn't serve your use case.

EdisonChang commented 3 years ago

@shwetha-manvinkurke OK got it, thank you.