File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
scribejava-core/src/main/java/com/github/scribejava/core/model Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 11[SNAPSHOT]
22 * create abstract HTTP Client layer to support different HTTP clients as plugins (AHC and Ning support becames maven submodules)
3+ * remove changing global JVM property http.keepAlive, deprecate controlling this property inside of ScribeJava (thanks to wldaunfr and rockihack)
34
45[2.8.1]
56 * add Salesforce sandbox API support
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ public abstract class AbstractRequest {
2424 private final ParameterList querystringParams = new ParameterList ();
2525 private final ParameterList bodyParams = new ParameterList ();
2626 private final Map <String , String > headers = new HashMap <>();
27- private boolean connectionKeepAlive ;
2827 private boolean followRedirects = true ;
2928 private final OAuthService service ;
3029
@@ -262,9 +261,11 @@ public void setCharset(String charsetName) {
262261 *
263262 * @see <a
264263 * href="http://download.oracle.com/javase/1.5.0/docs/guide/net/http-keepalive.html">http://download.oracle.com/javase/1.5.0/docs/guide/net/http-keepalive.html</a>
264+ * @deprecated does nothing - JVM default is left untouched. Set {@code http.keepAlive} system property to
265+ * {@code false} for pre-deprecation behavior.
265266 */
267+ @ Deprecated
266268 public void setConnectionKeepAlive (boolean connectionKeepAlive ) {
267- this .connectionKeepAlive = connectionKeepAlive ;
268269 }
269270
270271 /**
@@ -280,10 +281,6 @@ public void setFollowRedirects(boolean followRedirects) {
280281 this .followRedirects = followRedirects ;
281282 }
282283
283- public boolean isConnectionKeepAlive () {
284- return connectionKeepAlive ;
285- }
286-
287284 public boolean isFollowRedirects () {
288285 return followRedirects ;
289286 }
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ Response doSend() throws IOException {
6060 private void createConnection () throws IOException {
6161 final String completeUrl = getCompleteUrl ();
6262 if (connection == null ) {
63- System .setProperty ("http.keepAlive" , isConnectionKeepAlive () ? "true" : "false" );
6463 connection = (HttpURLConnection ) new URL (completeUrl ).openConnection ();
6564 connection .setInstanceFollowRedirects (isFollowRedirects ());
6665 }
You can’t perform that action at this time.
0 commit comments