Update MandrillRequestDispatcher.java -->TLSv1.2#87
Conversation
|
Sorry I didn't see this PR just the issue. To be honest I'm not entirely confident how to set up the SSL properly and wouldn't want to set bad defaults for all clients. I think a better solution would be a way to allow passing in / setting the global httpClient. This would allow your fix to be possible as well as any other customizations someone might need in the future. The con there is that it would be leaking out the internal implementation (apache http client). I don't think that is uncommon for libraries like this though. What would your thoughts be? |
|
I think that does make more sense than my proposed forced fix. Part of my hesitation with submitting the PR was that this issue is completely non-existent with java1.8 or newer (I don't know how many others would even need the fix); I think leaving the default behavior as is, but also allowing a pass-in/global httpClient would solve both problems. I'm not sure how that implementation would be done though. |
|
Can't we do this with some flag? The RequestDispatcher is only used from |
|
@rschreijer my thoughts are eventually someone will ask to be able to customize the http client. Whether its changing the number of connections per host, gzip, logging, any custom filters making the client configurable could solve all of those but leak the implementation a little. I think either solution could work. |
|
@billoneil your approach sounds better, but maybe instead of leaking the impl, we can just have a higher level /get/post interface, which can have (configurable) settings (and, of course, the http client thing should just be default impl). |
Dealing with Issue #86 ; Will force usage of TLSv1.2 ;